# Forge's "External auth" authentication flow does not behave properly anymore

**URL:** <https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004>\
**Category:** Forge Platform and Tools\
**Tags:** forge-external-auth\
**Created:** [September 30, 2026, 3:55pm UTC](https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004 "2026-09-30T15:55:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![linklefebvre](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/linklefebvre/32/49416_2.png) [@linklefebvre](https://community.developer.atlassian.com/u/linklefebvre)\
**Post date:** [September 30, 2026, 3:55pm UTC](https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004/1 "2026-09-30T15:55:23Z")

</div>

Forge’s [External Authentication](https://developer.atlassian.com/platform/forge/runtime-reference/external-fetch-api/) flow is now throwing an error when I try to authenticate my user a **second time**. This is a regression (it worked before).

Our app implements multiple external providers, _Google_ and _Microsoft_. We use Custom UI and Forge Bridge for the front-end.

### How Forge authentication flow works

The back-end implementation follows the documentation. Pseudocode:

```javascript
function resolverFunction() {
  const google = api.asUser().withProvider("google", "google-drive");
  if (!(await google.hasCredentials(["scope1", "scope2"]))) {
    await google.requestCredentials();
  }
}

```

The front-end calls the resolver function, and when credentials are missing, `requestCredentials` returns a special response that replaces our iFrame’s content with a button that opens Forge’s Oauth2 authentication flow.

After the authentication flow is done, our iFrame is refreshed back to our front-end code, calling the resolver function again, hopefully resulting in a successful call (no `requestCredentials` was called again because `hasCredentials` is true).

### The problem

The first authentication flow works properly (ex: Google), but subsequent authentications (ex: Microsoft) result in Forge throwing a “User consent was required again after consenting.” error in the final part of the authentication flow.

If I revoke all my “Atlassian third party account access” in [Profile → Connected apps](https://id.atlassian.com/manage-profile/apps), then the next (first) authentication will proceed normally.

I have tested both possible sequences (“Google then Microsoft” or “Microsoft then Google”) and the second authentication will throw.

The error happens because `hasCredentials` returns `false` (and should be `true`). The new connection is successfully added in Profile → Connected Apps. But it takes ~5 minutes for the `hasCredentials` method to now return `true`.

### Observation

I have noticed that an “Atlassian” access is also created in Profile → Connected apps:

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/f/0/f09edb8f059dcbd3c0082c1d5420c08f373bab57.png)

It’s only created once (after the first connection) but not again the next time. I believe it used to create a new “Atlassian” line for every connection (I could be wrong here).

* * *

I hope a staff member from Atlassian can let me know if this is a known issue, and if I should raise this bug somewhere.

Kind regards,  
Maxime

---

<div class="post-metadata">

**Author:** ![Mihai\_leanzero](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/mihai_leanzero/32/55980_2.png) [@Mihai\_leanzero](https://community.developer.atlassian.com/u/Mihai_leanzero)\
**Post date:** [October 1, 2026, 2:10pm UTC](https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004/2 "2026-10-01T14:10:49Z")

</div>

Hi @linklefebvre,

Multiple providers are supported, the [providers manifest reference](https://developer.atlassian.com/platform/forge/manifest-reference/providers/) says an app may authenticate with multiple different providers. Two keys alone are fine.

Same class of thing: [Stale hasCredentials results on external auth provider](https://community.developer.atlassian.com/t/stale-hascredentials-results-on-external-auth-provider/100409) shows `hasCredentials()` is eventually consistent, false for up to about 2 minutes after a fresh consent there (5 here).

That fits your error. The iframe refreshes, `hasCredentials()` comes back stale false, `requestCredentials()` fires again, and you get consent required again. So I’d retry `hasCredentials()` for a few minutes before ever calling `requestCredentials()` a second time.

Haven’t reproduced it. For a firm answer raise it through ECOHELP with both timings, I couldn’t find a public ECO ticket for it.

---

<div class="post-metadata">

**Author:** ![linklefebvre](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/linklefebvre/32/49416_2.png) [@linklefebvre](https://community.developer.atlassian.com/u/linklefebvre)\
**Post date:** [October 1, 2026, 2:35pm UTC](https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004/3 "2026-10-01T14:35:16Z")

</div>

Hi @Mihai_leanzero,

Thank you for the reply!

It used to work before so I knew this was supported.

Thanks for finding another post, I could not find one. It is indeed the same issue as mine. I can confirm both cases presented by the post were experienced by us.

Thanks for the solution idea, we could indeed do this. I would prefer we get an answer from Atlassian to be sure whether this is the intended behavior.

---

<div class="post-metadata">

**Author:** ![SamSmyth](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/samsmyth/32/48584_2.png) [@SamSmyth](https://community.developer.atlassian.com/u/SamSmyth)\
**Post date:** [October 2, 2026, 1:53am UTC](https://community.developer.atlassian.com/t/forges-external-auth-authentication-flow-does-not-behave-properly-anymore/103004/4 "2026-10-02T01:53:08Z")

</div>

Hi @linklefebvre and @Mihai_leanzero,

This is unexpected and I’ve raised this with the internal team and they have found a likely culprit, you can track the remediation here: [https://jira.atlassian.com/browse/ECO-1828](https://jira.atlassian.com/browse/ECO-1828)

Thanks for the report!
