Last post Feb 19, 2016 01:24 PM by Yohann Lu
Feb 17, 2016 01:33 AM|Ken.N|LINK
As my subject.
Feb 17, 2016 05:53 AM|Yohann Lu|LINK
As far as I know, Token as an identification: the identifier, resource extraction after certification codes, you can use your favorite type of encryption and decryption code.
For example, we can use Base64 encoding:
var token = Convert.ToBase64String(guid.ToByteArray()).TrimEnd('=');
More different Types Of Encoding Schemes:
There are many ways to achieve Token. Here are several ways for your reference in the below. They have their own set of algorithms Token.
1: JSON Web Token(JWT)
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.JWT.IO allows you to decode, verify and generate JWT.
You can read the tutorial in the following:
Feb 17, 2016 08:49 AM|Ken.N|LINK
Thank you, Yohann Lu.
But i means that i use "token based authentication" in link http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/. I don't understand type
of encryption of "Token".
Feb 19, 2016 01:24 PM|Yohann Lu|LINK
Each access token type definition specifies the additional attributes (if any) sent to the client together with the "access_token" response parameter. It also defines the HTTP authentication method used to include the access token when making a protected
The following article describes a Bearer Token and MAC Token, you can refer to it. I think you'll learn a lot.
OAuth 2.0 Bearer Token Profile Vs MAC Token Profile:
The article about The OAuth 2.0 Authorization Framework: Bearer Token Usage