Пример #1
0
        public static async Task<TokenEndPoint> GetTokenEndProint
        (
            IOwinContext owinContext,
            OAuthOptions options,
            AuthorizationCodeStorage storage,
            RefreshTokenStorage refreshTokenStorage
        )
        {
            var request = new TokenRequest(owinContext);
            await request.LoadAsync();

            var context = new OAuthContext(options, request, owinContext);

            return new TokenEndPoint(context, storage, refreshTokenStorage);
        }
Пример #2
0
 public OAuthContext(OAuthOptions options, TokenRequest request, IOwinContext context)
 {
     Options = options;
     TokenRequest = request;
     OwinConext = context;
 }