You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e7fc4d9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(providers): add Slack example profile with rotating user tokens
Add `providers/slack.yaml`, an example profile for Slack apps that have
token rotation enabled. Slack issues user access tokens that expire
after 43200 seconds together with a single-use refresh token, and
requires the app client ID and client secret on every refresh, so the
profile declares an `oauth2_refresh_token` credential against
oauth.v2.access with a matching 43200-second lifetime cap, a
21600-second refresh lead, and client_id / client_secret / refresh_token
material. Slack Web API methods are POST even for reads, so the endpoint
uses the read-write method preset; deployers add `rules` for the methods
their workloads need.
Tighten `ProviderTypeProfile::adc_credential` to require the Google
token endpoint in addition to the three ADC material keys, so that
`--from-gcloud-adc` keeps refusing profiles whose refresh material
merely has the same shape.
Document the profile under how-it-works/providers.
Refs #3729
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
0 commit comments