I am currently working on implementing OAuth2 for authentication with Tempo.
Following the documentation’s example for Google OAuth2 in the ‘providers’ section of the manifest.ym :
providers:
auth:
- key: google
name: Google
scopes:
- 'profile'
- 'https://www.googleapis.com/auth/userinfo.email'
type: oauth2
clientId: EXAMPLE
remotes:
- google-apis
actions:
authorization:
remote: google-account
path: /o/oauth2/v2/auth
exchange:
remote: google-oauth
path: /token
revokeToken:
remote: google-oauth
path: /revoke
retrieveProfile:
remote: google-apis
path: /userinfo/v2/me
resolvers:
id: id
displayName: email
avatarUrl: picture
remotes:
- key: google-apis
baseUrl: https://www.googleapis.com
- key: google-account
baseUrl: https://accounts.google.com
- key: google-oauth
baseUrl: https://oauth2.googleapis.com
I’ve encountered a problem - the base URL to obtain an authorization code from Tempo includes a variable, ‘jira-cloud-instance-name,’ in the form:
https://{jira-cloud-instance-name}.atlassian.net/plugins/servlet/ac/io.tempo.jira/oauth-authorize
How do i declare it in the manifest?
Thanks in advance.