/// <summary>
 /// Initializes a new instance of the <see cref="EndUserAuthorizationSuccessResponseBase"/> class.
 /// </summary>
 /// <param name="clientCallback">The URL to redirect to so the client receives the message. This may not be built into the request message if the client pre-registered the URL with the authorization server.</param>
 /// <param name="request">The authorization request from the user agent on behalf of the client.</param>
 internal EndUserAuthorizationSuccessResponseBase(Uri clientCallback, EndUserAuthorizationRequest request)
     : base(request, clientCallback)
 {
     ((IMessageWithClientState)this).ClientState = request.ClientState;
     this.Scope = new HashSet <string>(OAuthUtilities.ScopeStringComparer);
     this.Scope.ResetContents(request.Scope);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EndUserAuthorizationFailedResponse"/> class.
 /// </summary>
 /// <param name="clientCallback">The URL to redirect to so the client receives the message. This may not be built into the request message if the client pre-registered the URL with the authorization server.</param>
 /// <param name="request">The authorization request from the user agent on behalf of the client.</param>
 internal EndUserAuthorizationFailedResponse(Uri clientCallback, EndUserAuthorizationRequest request)
     : base(((IProtocolMessage)request).Version, MessageTransport.Indirect, clientCallback)
 {
     ((IMessageWithClientState)this).ClientState = request.ClientState;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EndUserAuthorizationSuccessAccessTokenResponse"/> class.
 /// </summary>
 /// <param name="clientCallback">The URL to redirect to so the client receives the message. This may not be built into the request message if the client pre-registered the URL with the authorization server.</param>
 /// <param name="request">The authorization request from the user agent on behalf of the client.</param>
 internal EndUserAuthorizationSuccessAccessTokenResponse(Uri clientCallback, EndUserAuthorizationRequest request)
     : base(clientCallback, request)
 {
     ((IMessageWithClientState)this).ClientState = request.ClientState;
     this.TokenType = Protocol.AccessTokenTypes.Bearer;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EndUserAuthorizationSuccessAuthCodeResponse"/> class.
 /// </summary>
 /// <param name="clientCallback">The URL to redirect to so the client receives the message. This may not be built into the request message if the client pre-registered the URL with the authorization server.</param>
 /// <param name="request">The authorization request from the user agent on behalf of the client.</param>
 internal EndUserAuthorizationSuccessAuthCodeResponse(Uri clientCallback, EndUserAuthorizationRequest request)
     : base(clientCallback, request)
 {
     ((IMessageWithClientState)this).ClientState = request.ClientState;
 }