Hello,
When creating and authorisation via Auth2.0 their is a pop up window, and the redirect has a different URi
Type: Authorisation Code
Authentication URL: https://<client_ID>.simprosuite.com/oauth2/login?client_id=xxxxxxxxxxxxxxxxxx
Redirect URL: /oauth2/accessCode
Token URL: https://<client_ID>.simprosuite.com/oauth2/token
client_id: xxxxxxxxxxxxxx
client_secret: xxxxxxxxxxxx
grant_type: authorization_code
The authorisation hangs as the URi is not pointing in the right redirect to extract the code
https://<client_ID>.simprosuite.com/oauth2/auth?%3Fredirect_uri=https%3A%2F%2Fwww.integromat.com%2Foauth%2Fcb%2Foauth2&state=xxxxxxxxxxxxxx&client_id=xxxxxxxxxxxxxx&response_type=code&grant_type=authorization_code&code=%2Foauth2%2FaccessCode
https://<client_ID>.simprosuite.com/oauth2/accessCode?code=xxxxxxxxxxxxxx&state=xxxxxxxxxxx
I beleive the resolution is in the access token parameters of the advanced settings, when performing these API calls, is it the suggestion that a top level user be the primary login, as others may leave and the access would then need to be reattained.
Note: XXXXX where sensitive content is also
API Auth2.0 in seperate window -
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
-
PremMarkeli
- Posts: 148
- Joined: Tue Oct 26, 2021 3:11 am
Re: API Auth2.0 in seperate window -
Hi,
API authorisation can be done by Simpro User who is an admin. Are you experiencing any issues when authorising as admin user.
Please send us the screenshots of the issue you are experiencing via PM.
Regards
API authorisation can be done by Simpro User who is an admin. Are you experiencing any issues when authorising as admin user.
Please send us the screenshots of the issue you are experiencing via PM.
Regards
Prem
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: API Auth2.0 in seperate window -
Authorisation Code doesn't require the user to be an admin as it connects via the user's credentials.
I have added a test user who has no admin access to an app via authorisation code grant.
I have added a test user who has no admin access to an app via authorisation code grant.
DEVELOPER CENTER