Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyJwtOptions : JwtBearerAuthenticationOptions
- {
- #region Constructors
- /// <summary>
- /// Initializes a new instance of the <see cref="MyJwtOptions"/> class.
- /// </summary>
- public MyJwtOptions()
- {
- //TODO: As mentioned in the Authorisation service, we need to decide how we want to manage the Issuer and Audience.
- const String issuer = "Tahoe";
- const String audience = "audience";
- Byte[] keyByteArray = Helper.GetSigningKey();
- String key = Convert.ToBase64String(keyByteArray);
- this.AllowedAudiences = new[] {audience};
- this.IssuerSecurityTokenProviders = new[] {new SymmetricKeyIssuerSecurityTokenProvider(issuer, key)};
- }
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement