Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

40303 message: Authorization requirement not met. #2

Closed
johnpilll opened this issue Mar 30, 2016 · 4 comments
Closed

40303 message: Authorization requirement not met. #2

johnpilll opened this issue Mar 30, 2016 · 4 comments

Comments

@johnpilll
Copy link

I have tried with sms verification and here is my code.

Config config = SinchVerification.config().applicationKey(APP_KEY).context(getApplicationContext()).build();
Verification verification = SinchVerification.createSmsVerification(config, stringPhoneNumber, listener);
verification.initiate();

But getting this error with application mode :

com.sinch.verification.ServiceErrorException: Sinch backend request failed with code: 40303 message: Authorization requirement not met.
at com.sinch.verification.internal.apiservice.ApiService.extractError(ApiService.java:95)
at com.sinch.verification.internal.apiservice.ApiService.handleResponse(ApiService.java:81)

error with public mode :

com.sinch.verification.ServiceErrorException: Sinch backend request failed with code: 42202 message: Invalid callback response.
at com.sinch.verification.internal.apiservice.ApiService.extractError(ApiService.java:95)
at com.sinch.verification.internal.apiservice.ApiService.handleResponse(ApiService.java:81)
@slavasav slavasav reopened this Mar 30, 2016
@johnpilll
Copy link
Author

at the place of APP_KEY , i have written my application key that is available in sinch developer dashboard

@slavasav
Copy link

Hi,

Sorry for the confusion, I can see that your app makes a request, which means that the app key is specified correctly.
When using the SDK you need to set public authorization. Also if you specify a callback url, the callback has to send "allow" response for approved verifications.

@sachinletsgo
Copy link

when I try with sandbox key it`s working fine. But when I try with production key, it show me error 40303

@slavasav
Copy link

Please make sure that your production key authorization method is also set to "public" in dashboard. If that is already the case, please contact support@sinch.com with your account details so that we could investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants