Now sureness supports JWT, Basic Auth, Digest Auth... also can extend custom supported authentication methods(by extend interface
json web token, is a very popular cross-domain, stateless, security authentication solution.
why we call
bearer jwt here is because
jwt is put into the
bearer token in the http request header, eg:
Authorization: Bearer jsonWebTokenValue
we can use it in postman: add jwt in Bearer Token.
basic auth -
Basic access authentication, is a classic
http basic authentication method.
This authentication method encrypts the string
base64 composed of the account password and puts it in the
Authorization of the request header, eg:
Authorization: Basic base64encode(username+":"+password)
we can use it in postman: add username password in
Basic Auth type's
Authorization, postman would encrypt it automatically.
digest auth -
Digest access authentication, is a classic
http digest authentication method. It is used to protect the transmitted password.
The following is the authentication process flow of
digest auth, which come from internet
We can use it directly in the chrome browser: visit the url, enter the account password in the pop-up dialog box,
and the chrome browser will automatically perform the authentication process.
Sureness currently supports these three mainly auth types for the time being, and will continue to expand other basic authentication methods in the future. Of course, you can easily customize the authentication method, detail: Custom Subject
We provide the demo to use default authentication method, detail please refer to 10 Minute Tutorial's Program--sample-bootstrap
Also we provide the demo to custom authentication method, detail please refer to 30 Minute Tutorial's Program--sample-tom