The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
02-01-2024 10:11 AM
Hi
I want to do some REST requests. Is it possible to authorize without having to use the login screen?
02-06-2024 11:17 AM
For the initial app authorization you must use the login screen. As @orbjeff said, that is part of how the OAuth flow works.
Once the app has been authorized, you can use the refresh token provided in the initial OAuth response to get a new access token once the original one expires. Until the user revokes permissions for your app, you can indefinitely get new access tokens without needing to use the login screen.
02-05-2024 06:34 AM
My understanding is that the Strava API implements the OAuth 2.0 specification. There are multiple authentication flows in this specification and the one you are asking about is called the "Client Credentials" flow. This flow is typically used for machine to machine authentication. The "Authorization Code" flow is what requires the login screen and the reason is because individual users are giving your app permission to post, modify, create activities on that user's behalf.
There used to be a way to configure an application ("Client Credentials") under you own Strava account in the "Settings" section but I don't see that anymore. Maybe this has changed with some of the API updates.
Welcome to the Community - here is your guide to help you get started!