Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting Issue On External OAuth 2.

deepak_soni August 13, 2024

Getting issue could not retrieve profile information: Unexpected token O in JSON at position 0 when using external OAuth2.0 with Atlassian Jira.

1 comment

deepak_soni August 13, 2024

 

 

modules:
  jira:issueGlance:
    - key: oauth2-0-rescue-hello-world-glance
      resource: main
      resolver:
        function: resolver
      viewportSize: medium
      title: OAuth2.0-Rescue
      label: Manage Sessions
      icon: //logmeincdn.azureedge.net/sc-rescue/-/media/342f1028089f4b6a94f0de5a49297a2b.svg?la=en&hash=42AEE2A319EC0CF773B3AAD279602B746EF05002
  function:
    - key: resolver
      handler: index.handler
      providers:
        auth:
          - rescue
providers:
  auth:
    - key: rescue
      name: Rescue
      scopes:
        - "Rescue;API"
      type: oauth2
      clientId: "20"
      remotes:
        - rescue-apis
      bearerMethod: authorization-header
      actions:
        authorization:
          remote: rescue-account
          path: /id-srv-api/api/OAuth/code
          queryParameters:
            client_id: "20"
            response_type: code
            redirect_uri: https://id.atlassian.com/outboundAuth/finish
            state: aXJrQ3JzVXXX
            access_type: offline
            prompt: consent
        exchange:
          remote: rescue-oauth
          path: /id-srv-api/api/OAuth/token
        retrieveProfile:
          remote: rescue-apis
          path: /API/getCurrentUser.aspx
          resolvers:
            id: id
            displayName: email
            avatarUrl: type
remotes:
  - key: rescue-apis
  - key: rescue-account
  - key: rescue-oauth
  - key: createSession
permissions:
  scopes:
    - write:jira-work
    - read:jira-work
    - storage:app
    - read:comment:jira
    - write:comment:jira
    - read:jira-user
    - manage:jira-configuration
  external:
    fetch:
      client:
        - "*"
      backend:
resources:
  - key: main
    path: static/app/build
app:
  id: ari:cloud:ecosystem::app/99b5cd14-977b-4778-8c7f-1190feXXXXXX

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events