Michele Volpato

Michele Volpato

Different URL between Okta OAuth 2.0 login and logout


The Okta API documentation mentions the same ${baseUrl} for all the endpoints. For instance, ${baseUrl}/v1/authorize to login, ${baseUrl}/v1/logout to logout, and ${baseUrl}/v1/userinfo for user information.

While working for a client’s project, after a successful login, I started receiving a 404 not found error for other endpoints, like /logout and /userinfo.

It looks like some Okta implementations require a different baseUrl, in this client’s specific case it’s oauth2/.

Thus, if you get a 404 not found error for your logout endpoint, try to add oauth2/to the URL: https://${baseUrl}/oauth2/v1/logout.

Get a weekly email about Flutter

Subscribe to get a weekly curated list of articles and videos about Flutter and Dart.

    We respect your privacy. Unsubscribe at any time.

    Leave a comment