DEFRA / digital-assistance-scheme

Digital Assistance Scheme
2 stars 1 forks source link

help: error at authorization #2

Open hs-faithfulness-alamu opened 3 months ago

hs-faithfulness-alamu commented 3 months ago

The Sample Project for the Defra API links to this repository but my attempts to authorize with this project and other oauth2 clients have failed with the error:

/callback?error=server_error&error_description=AADB2C%3a+An+exception+has+occurred.%0d%0aCorrelation+ID%3a+65e29879-ab80-4354-bef2-1ac4e8fe49a7%0d%0aTimestamp%3a+2024-03-28+10%3a48%3a23Z%0d%0a

error = server_error
error_description = An exception has occurred.

I have also attempted to authorize from the API Base URLs listed at API access since this repo has not been updated in 3years with no luck.

How do I proceed please?

azarc-jono-langley commented 1 month ago

Did you ever get a response to this? We're getting the same issue and it appears that no matter what changes we make its still providing the same error in the response. We've various combinations for eg:

{
  "B2CSettings": {
    "Authority": "https://defratradedevportal.b2clogin.com",
    "Domain": "defratradedevportal.onmicrosoft.com",
    "SignUpSignInPolicyId": "B2C_1A_Consent_SUSI",
    "ClientId": "XXX",
    "ClientSecret": "YYY",
    "RedirectUri": "http://localhost:8080/callback"
  },
  "Scopes": "offline_access https://defratradedevportal.onmicrosoft.com/7dbab6c7-0908-4788-bd64-515cd3f6006a/user_impersonation",
  "DefraTradeGateway": "https://gateway.trade.defra.gov.uk"
}

AND:

{
  "B2CSettings": {
    "Authority": "https://defratradedevportal.b2clogin.com",
    "Domain": "defratradedevportal.onmicrosoft.com",
    "SignUpSignInPolicyId": "B2C_1A_Consent_SUSI",
    "ClientId": "XXX",
    "ClientSecret": "YYY",
    "RedirectUri": "http://localhost:8080/callback"
  },
  "Scopes": "https://gateway.trade.defra.gov.uk/plants.read",
  "DefraTradeGateway": "https://gateway.trade.defra.gov.uk"
}

Nothing seems to work, any help much appreciated.