Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnOAuth2ClientCredentialsGrantTypeRequested

TElHTTPSServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a Client Credentials grant is requested.

Declaration

[C#]
    event TSBOAuth2GrantTypeRequestedEvent OnOAuth2ClientCredentialsGrantTypeRequested;
    delegate void TSBOAuth2GrantTypeRequestedEvent(Object Sender, string ID, string Scope, ref bool Allow);

[VB.NET]
    Event OnOAuth2ClientCredentialsGrantTypeRequested As TSBOAuth2GrantTypeRequestedEvent
    Delegate Sub TSBOAuth2GrantTypeRequestedEvent(ByVal Sender As Object, ByVal ID As String, ByVal Scope As String, ByRef Allow As Boolean)

[Pascal]
    property OnOAuth2ClientCredentialsGrantTypeRequested : TSBOAuth2GrantTypeRequestedEvent;
    TSBOAuth2GrantTypeRequestedEvent = procedure(Sender : TObject; const ID, Scope : string; var Allow : boolean) of object;

[C++]
    void get_OnOAuth2ClientCredentialsGrantTypeRequested(TSBOAuth2GrantTypeRequestedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOAuth2ClientCredentialsGrantTypeRequested(TSBOAuth2GrantTypeRequestedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBOAuth2GrantTypeRequestedEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcID, int32_t szID, const char * pcScope, int32_t szScope, int8_t &Allow);

[PHP]
    TSBOAuth2GrantTypeRequestedEvent|callable|NULL get_OnOAuth2ClientCredentialsGrantTypeRequested()
    void set_OnOAuth2ClientCredentialsGrantTypeRequested(TSBOAuth2GrantTypeRequestedEvent|callable|NULL $Value)
    callable TSBOAuth2GrantTypeRequestedEvent(TObject $Sender, string $ID, string $Scope, bool &$Allow)

[Java]
    TSBOAuth2GrantTypeRequestedEvent getOnOAuth2ClientCredentialsGrantTypeRequested();
    void setOnOAuth2ClientCredentialsGrantTypeRequested(TSBOAuth2GrantTypeRequestedEvent Value);
    TSBOAuth2GrantTypeRequestedEvent.Callback OnOAuth2ClientCredentialsGrantTypeRequested = new TSBOAuth2GrantTypeRequestedEvent.Callback() {
        public void TSBOAuth2GrantTypeRequestedEventCallback(TObject Sender, String ID, String Scope, TSBBoolean Allow) {
            //...
        }
    }

Parameters

  • ID - the client identifier.
  • Scope - the scope of the request.
  • Allow - specifies whether to accept or to deny the request.
  • pcID - the client identifier.
  • szID - the length of pcID.
  • pcScope - the scope of the request.
  • szScope - the length of pcScope.

Description

This event is fired when OAuth 2.0 receives a Client Credentials grant request. Such request is used when an applications requests access token to access its own resources.

See also:     OnOAuth2PasswordGrantTypeRequested    

Discuss this help topic in SecureBlackbox Forum