<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y000064zP0JSAUOkta Classic EngineAuthenticationAnswered2019-05-01T22:42:41.000Z2019-03-24T06:23:02.000Z2019-05-01T22:42:41.000Z
  • Basic authentication works as follows:

     

    When a client sends a request to the server, the server returns a 401 Unauthorized response status and provides information on how to authenticate with a WWW-Authenticate response header.

    If the client is a browser, a built-in browser dialog will prompt the user for a username and password. A programmer has no control over what this dialog looks like.

    When a browser sends the user's credentials to the server, the username and password are combined with a colon separator (username:password), base64-encoded, then added to the Authorization header like so: Authorization: Basic base64(username:password)

     

     

     

    You can search trough our developer articles for more details but unfortunately there is no code snippet.

     

    Expand Post
    Selected as Best
  • Basic authentication works as follows:

     

    When a client sends a request to the server, the server returns a 401 Unauthorized response status and provides information on how to authenticate with a WWW-Authenticate response header.

    If the client is a browser, a built-in browser dialog will prompt the user for a username and password. A programmer has no control over what this dialog looks like.

    When a browser sends the user's credentials to the server, the username and password are combined with a colon separator (username:password), base64-encoded, then added to the Authorization header like so: Authorization: Basic base64(username:password)

     

     

     

    You can search trough our developer articles for more details but unfortunately there is no code snippet.

     

    Expand Post
    Selected as Best
This question is closed.
Loading
Basic Authentication