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

Different grant type for oauth #79

Closed
justageek opened this issue Aug 17, 2022 · 6 comments
Closed

Different grant type for oauth #79

justageek opened this issue Aug 17, 2022 · 6 comments

Comments

@justageek
Copy link

Hi, we need to use 'client_credentials' to get an oauth token before every other api call we make to a third party api call. Well we only need a new token if the previous one has expired, they have a 2 hour life.

Wondering how I can create a custom authenticator so it adds the latest token to every other request we need to make

Thanks,
Brian Smith

@Sammyjo20
Copy link
Collaborator

Hey Brian, are you still trying to figure this out?

@Sammyjo20 Sammyjo20 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2022
@mattiusclay
Copy link

I'd love to use Saloon but it seems the 3rd party API I'm using needs grant_type to be client_credentials for the auth payload.

@justageek
Copy link
Author

I was able to figure out a solution to my problem at this time, thanks for asking.

@Sammyjo20
Copy link
Collaborator

Sounds like the extra grant time might be useful! I’m open for discussion on this as I’d like people to have everything they need!

@relaypilot
Copy link

Looks like it could become possible to use client_credentials as the grant_type soon?
It's also a requirement for an API I am connecting to.
#157

@Sammyjo20
Copy link
Collaborator

Hey @relaypilot!

Yes client credentials is very much on my radar - the main discussion is over at #157

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

4 participants