RFC6750 - The OAuth 2.0 Authorization Framework: Bearer Token UsageĪnd consists in sending an OAuth2 access token in the HTTP request. The OAuth2 Bearer scheme is documented in Private static final String RESOURCE_ENDPOINT_URL = SANDBOX_URL + "/restapi/api/offer/v1.An APIac.Authenticator plug for API authentication using the OAuth2 Bearer scheme Public static final String ACCESS_CONFIRMATION_URL = SANDBOX_URL + "/restapi/security/oauth/confirm_access" Public static final String ACCESS_TOKEN_URL = SANDBOX_URL + "/restapi/security/oauth/access_token" Public static final String REQUEST_TOKEN_URL = SANDBOX_URL + "/restapi/security/oauth/request_token" Private static final String SANDBOX_URL = "" Import .consumer.ProtectedResourceDetails Import .consumer.BaseProtectedResourceDetails The request needs to be signed with both your consumer secret and the request token secret.įinally, you can use the access token to fetch data from the realestate API. To obtain the access token, you need to send a request with the request token and verifier. If the user has confirmed the access, you can extract the verifier from the request. In your callback endpoint, you need to check that the access has been granted (check the state parameter). After the user has confirmed access, our API will redirect the user to the configured callback endpoint in your application.They will have to login at ImmoScout24 (browser interaction) and are presented with an access confirmation dialog.Where they can confirm that your application is allowed to communicate with our API in the name of the user (code line). The next step is to send your user to our API with the request token, Store the resulting token (the request token) and its secret, you will need them in the following steps! You sign this request with your consumer key and consumer secret.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |