Discussions

Ask a Question
Back to all

Addon Authentication - URL construction

Hi!

We are registering a new AddOn and following the same pattern (in fact the construction code is the same) to authenticate.

Whilst it works for the first addon (which is still in draft) the second one is problematic as soon as the https://go.servicem8.com/checklist/oauth/authorize endpoint is accessed. This is my constructed url = https://go.servicem8.com/checklist/oauth/authorize?response_type=code&client_id=666241&redirect_uri=https%3A%2F%2Fsm8.heyfieldflow.com%2Fchecklist%2Foauth%2Fcallback&scope=read_jobs%20manage_jobs%20read_customers%20manage_staff%20publish_sms. Immediately on clicking this, an 'Access Denied' response is received.

I've checked everything I can think of in the back end and all seems fine there, especially as the first add-on I am constructing is authenticating perfectly.

I am demonstrating this to one of your clients tomorrow who urgently needs help with their functionality and I am trying to help them. Your prompt response would be greatly appreciated.

For your information the other url I construct that goes to a different addon and does work and am able to complete the authentication process, is constructed as follows

https://go.servicem8.com/oauth/authorize?response_type=code&client_id=818474&redirect_uri=https%3A%2F%2Fsm8.heyfieldflow.com%2Foauth%2Fcallback&scope=read_jobs%20manage_jobs%20read_customers%20manage_staff%20publish_sms