upstream_params
object in the options
object with the parameters you’d like to send to the IdP.
blog
parameter to its authorization endpoint, and automatically request access to a specified blog for users when they log in. To learn more, read WordPress’s OAuth 2.0 documentation.
To follow this example, you’ll need a working WordPress Social connection.
options
object:
options
object will look something like this:
options
object, and then add the upstream_params
object with the blog
field as an attribute:
options
object in the body:
blog=myblog.wordpress.com
.
upstream_params
object in the options
object with the parameters you’d like to send to the IdP, and specify the field that the parameter maps to with the alias
attribute.
Here’s a sample options
object that we’ll revisit later in the X example:
alias
attribute:
acr_values
audience
client_id
display
id_token_hint
login_hint
max_age
prompt
resource
response_mode
response_type
ui_locales
screen_name
parameter to its OAuth authorization endpoint. The screen_name
parameter pre-fills the username input box of the login screen with the given value. To learn more, read X’s API reference.
To follow this example, you’ll need a working Twitter Social connection.
options
object:
options
object will look something like this:
options
object, add the upstream_params
object with the screen_name
field as an attribute, and then set the alias
attribute to login_hint
:
options
object in the body:
login_hint
parameter:
screen_name
parameter: