slackline/api/oauth/v2_user_access

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Setters for the optional arguments of oauth.v2.user.access. Each setter takes the call that oauth.v2_user_access returns and sets one argument:

oauth.v2_user_access()
|> v2_user_access.client_id("2141029472.691202649728")

Values

pub fn assertion(
  call: slackline.Call(oauth.V2UserAccess, r),
  assertion: String,
) -> slackline.Call(oauth.V2UserAccess, r)

Identity assertion JWT authorization grant.

pub fn client_id(
  call: slackline.Call(oauth.V2UserAccess, r),
  client_id: String,
) -> slackline.Call(oauth.V2UserAccess, r)

Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.

pub fn client_secret(
  call: slackline.Call(oauth.V2UserAccess, r),
  client_secret: String,
) -> slackline.Call(oauth.V2UserAccess, r)

Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.

pub fn code(
  call: slackline.Call(oauth.V2UserAccess, r),
  code: String,
) -> slackline.Call(oauth.V2UserAccess, r)

The code param returned via the OAuth callback.

pub fn code_verifier(
  call: slackline.Call(oauth.V2UserAccess, r),
  code_verifier: String,
) -> slackline.Call(oauth.V2UserAccess, r)

The code_verifier param used to generate the code_challenge originally. Used for PKCE.

pub fn grant_type(
  call: slackline.Call(oauth.V2UserAccess, r),
  grant_type: common.GrantType,
) -> slackline.Call(oauth.V2UserAccess, r)

The grant_type param as described in the OAuth spec.

pub fn redirect_uri(
  call: slackline.Call(oauth.V2UserAccess, r),
  redirect_uri: String,
) -> slackline.Call(oauth.V2UserAccess, r)

This must match the originally submitted URI (if one was sent).

pub fn refresh_token(
  call: slackline.Call(oauth.V2UserAccess, r),
  refresh_token: String,
) -> slackline.Call(oauth.V2UserAccess, r)

The refresh_token param as described in the OAuth spec.

✨ Search Document