Problems generating Token Oauth2.0

2

Having my application flow already changed ( Client Credentials Grant ) in order to automate the use of Jasmin's api, I'm not getting the answers that would be expected .

In the jasmin documentation, about OAuth2.0 , it states that for the type of flow indicated above the url to use will be of the following format:

asked by anonymous 31.03.2018 / 16:52

1 answer

3

What's wrong with the request is the URL for authentication. It should be something like link

function doLogin() {

var CLIENT_ID = 'your_client_id';
var AUTHORIZATION_ENDPOINT = 'https://identity.primaverabss.com/core/connect/authorize';
var CALLBACK_ENDPOINT = 'your_callback_endpoint'

try {

    var authUrl = AUTHORIZATION_ENDPOINT +
                '?response_type=token' +
                '&client_id=' + CLIENT_ID +
                '&redirect_uri=' + CALLBACK_ENDPOINT +
                '&scope=application';

    window.location.replace(authUrl);
}
catch (err) {
    console.log(err.message);
}
    
02.04.2018 / 23:57