How to get the bearer token through API ? #6241
-
Is there any way to get bearer token through API, I have tried couple of ways listed below but both dint work in my case 👍
Both the requests are giving me 404 in response . Can anyone please suggest what should be done in order to get the Bearer Token through Code preferably API which would be used for subsequent requests |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
What are you trying to do with the bearer token? Can you use concourse/fly/commands/login.go Lines 180 to 197 in 248606d which I have just figured out how to do for you:
This is the textbook oauth2 password grant flow, but the trick is to know that fly uses a hardcoded client id and secret (the |
Beta Was this translation helpful? Give feedback.
-
Hi Jamie,
Is there any offline scope supported by Concourse for getting the refresh
token ? As passing offline is giving me error. ?
One more thing , i want to embed my concourse pipeline in website , is
there any way to embed the Concourse Pipeline URL which
doesnt required user login.
…On Fri, Nov 6, 2020 at 8:30 PM Jamie Klassen ***@***.***> wrote:
@chris-aeviator <https://github.com/chris-aeviator> if your oauth
callback is broken that sounds like its own problem. but you can also
navigate directly to <concourse url>/fly_success to get a page that lets
you copy your token.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHXZ5EZHE45DM5ADMUU2ADSOQFR7ANCNFSM4TIYRMOA>
.
|
Beta Was this translation helpful? Give feedback.
What are you trying to do with the bearer token? Can you use
fly
? or maybe go-concourse? Anyway it sounds like you're trying to reverse-engineer this code:concourse/fly/commands/login.go
Lines 180 to 197 in 248606d