How to use e-Schooling Account to authenticate in your application#
First of all, to use the e-Schooling Account to access your application it needs to be registered in our system together with the redirect URIs you may want us to redirect the user after the credentials verification. This redirect URIs must expect a parameter named “code” in order to follow the OAuth2 authentication flow.You will be assigned a client_id that is associated to those given redirect URIs.After this registration is completed the process will behave as following:
The code obtained in the previous step allows the external application to call the e-Schooling API “oauth2/token” method.
1.
The code is validated using the given client_id and redirect_uri. If the client_id or redirect_uri doesn’t match with those associated to the code or the code is expired the response will be “invalid_grant”.
Use the token to obtain information about the user calling the e-Schooling API “oauth2/me” method. This method will return the user email and the tenant where the user logged in.