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

Add authorization token to header for external request #534

Closed
avanderpluijm opened this issue Sep 11, 2018 · 1 comment
Closed

Add authorization token to header for external request #534

avanderpluijm opened this issue Sep 11, 2018 · 1 comment
Milestone

Comments

@avanderpluijm
Copy link

avanderpluijm commented Sep 11, 2018

Hello,

What do I need to do to create a authenticated request to an external service?
I am using wp_remote_get(url,args); to make this request, but it needs an 'Authorization Bearer xxxx' header.

Is there a way to get this token from this module? Something like get_token()

(also posted this question at auth community forum)

@joshcanhelp
Copy link
Contributor

Thanks @avanderpluijm, I'll answer this question over there to keep responses in one place.

@joshcanhelp joshcanhelp added this to the 3.8.0 milestone Nov 6, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants