question

thedangler avatar image
thedangler asked David Marginian Deactivated edited

oauth test token

I'm testing out authentication following the instruction. for now I'm using token to get it from the query string.

I'm confused if this token is the same as the API key that is generated with the full oauth flow?
Also, my query string isn't formatted properly, is this on purpose?
http://app.test:8000/app_auth?merchant_id={correct}&employee_id={correct}&client_id={correct}#access_token=744bf7d1-{-rest of - token}

is client_id supposed to be client_id=stuff#access_token=stuff

shouldn't be &access_token=


Is the API key the same as access_token and the instructions are referencing access_token 2 times for 2 reasons?


this is the page I'm looking at

https://docs.clover.com/docs/using-oauth-20#generating-a-sandbox-oauth-token-on-the-developer-dashboard

clover developer community
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

The full oauth flow returns a code you use that code to obtain an access token. The access token you obtain is the same one passed directly in the URL when you are using an oauth type of TOKEN (for testing only). Does this answer your question?

6 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

thedangler avatar image thedangler commented ·
In the instructions is says API Token is that the same as access_token?
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ thedangler commented ·

From an oauth perspective, API token = access_token

0 Likes 0 ·
thedangler avatar image thedangler David Marginian ♦♦ commented ·

I would accept that answer but the python code shows this.

ACCESS_TOKEN={access_token}

API_KEY={api_key}

ENVIRONMENT=sandbox
That is why I'm confused.


0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community