# “You are not allowed to access this app” returned even though everyone has access to OIDC App

**URL:** <https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672>\
**Category:** OAuth/OIDC\
**Created:** [December 16, 2025, 9:30pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672 "2025-12-16T21:30:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 16, 2025, 9:30pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/1 "2025-12-16T21:30:32Z")

</div>

I am an OKTA newbie. I am trying to run the simplest use case for a Spring Boot web app accessed using OKTA. I downloaded the sample: Okta Spring Security & Okta-Hosted Login Page Example.  
[https://github.com/okta/samples-java-spring/tree/master/okta-hosted-login](https://github.com/okta/samples-java-spring/tree/master/okta-hosted-login)

I followed the instruction for creating, via the OKTA Admin Console, an App Integration, using the defaults as instructed.

[https://developer.okta.com/docs/guides/implement-grant-type/authcode/main/#1-setting-up-your-application](https://developer.okta.com/docs/guides/implement-grant-type/authcode/main/#1-setting-up-your-application).

I create an App Integration in the OKTA admin console with:

· OIDC - OpenID Connect

· Web App

· Allow everyone in your organization to access

**·** Enable immediate access with **Federation Broker Mode**

I run the Spring Boot Tomcat locally, select Login button and get directed to OKTA log-in pages and login in with ID and credentials. But I get

**You are not allowed to access this app. To request access, contact an admin.**

In the OKTA Admin Console, I can see my app has assignments “This app is implicitly assigned to users.”

I even tried assigning my user to the app as well as assigning the Everyone group to the app but when I log in (via the OKTA prompts) I still get “You are not allowed to access this app. To request access, contact an admin.”

What could I be doing wrong since I tried allowing everyone in org, the specific user, and the Everyone group to be assigned to the app?

Is there any way to see how the access policy is determining access?

What else can I try?

I know this is a simplistic question but I am frustrated that I cannot get this simple example from OKTA to work. Thank you for any help.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [December 16, 2025, 9:59pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/2 "2025-12-16T21:59:47Z")

</div>

Hmm, do you happen to have an Authorization Policies assigned to this app that is denying access to these users?

---

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 17, 2025, 2:33pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/3 "2025-12-17T14:33:05Z")

</div>

> [@andrea](#):
>
> mm, do you happen to have an Authorization Policies assigned to this app that is denying access to these users?

Thank you for your help.

In my Application Integration, under the Assignments tab, I have:

`This app is implicitly assigned to users`  
`Immediate access is currently enabled with Federation Broker Mode for this app. As a result, user access is determined by app sign-on policies.`

What other authorization policies do I need to look at? Wouldn’t the authorization policies for an app integration be listed under the app definition? Where else can I look?

In User Profile Policies → Email verification I turned off “Required before access is granted” but that did not correct problem.

---

<div class="post-metadata">

**Author:** ![ddinh-lee](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@ddinh-lee](https://devforum.okta.com/u/ddinh-lee)\
**Post date:** [December 17, 2025, 9:28pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/4 "2025-12-17T21:28:09Z")

</div>

you could try using the “ **Access Testing Tool** ” under the reports tab, select the app and choose a user and see what it generates in the results if you haven’t already tried that.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [December 18, 2025, 4:54pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/5 "2025-12-18T16:54:42Z")

</div>

If you look at the application’s Sign On (in some orgs, its labelled Authentication) tab, you should see a section at the bottom showing which Authentication Policy is assigned (I misspoke earlier when I referred to them as Authorization Policies, this is what happens when you type too fast!).  
Make sure that these users aren’t getting denied due to a rule in that policy.

---

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 18, 2025, 9:20pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/6 "2025-12-18T21:20:48Z")

</div>

I used the Access Testing Tool.  
When I select Run Test, it shows that the user has access to the app. As I understand it, it does not tell me anything about a user using OIDC trying to access the app.

I am still running the sample okta-hosted-login app from OKTA  
The web page has a ‘Login’ button. When I select it, the browser open the OKTA authenticate page. I can tell it is accessing the corret app since the client id is in the URL

> **[broadcom-integrator-9795538 - Sign In](https://integrator-9795538.okta.com/oauth2/default/v1/authorize?response_type=code&client_id=0oayen3dpxBopiIBU697&scope=profile%20email%20openid&state=SqDPlSFDrnrj1OGzoSGz6O7zYmidNYKQO4Q3k3lE7ek%3D&redirect_uri=http:%2F%2Flocalhost:8080%2Fauthorization-code%2Fcallback&nonce=yINIpHwGCx5oxgRPOz_yodnTJ9BHNgi2luAz4Gki7_s)**

“[broadcom-integrator-9795538 - Sign In](https://integrator-9795538.okta.com/oauth2/default/v1/authorize?response_type=code&client_id=0oayen3dpxBopiIBU697&scope=profile%20email%20openid&state=SqDPlSFDrnrj1OGzoSGz6O7zYmidNYKQO4Q3k3lE7ek%3D&redirect_uri=http://localhost:8080/authorization-code/callback&nonce=yINIpHwGCx5oxgRPOz_yodnTJ9BHNgi2luAz4Gki7_s%E2%80%9C)

But I still get  
You are not allowed to access this app. To request access, contact an admin.

How is the client secret passed to the OKTA IDP? That seems to be a possible problem.

How can Access Testing Tool show the how it the OKTA IDP determine access given the client id (and client secret?) passed to it?

Thank you

---

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 18, 2025, 9:22pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/7 "2025-12-18T21:22:52Z")

</div>

I have the correct Authentication Policy.  
I can tell because I changed it from MFA to just password and the OKTA authenticate page responded accordingly. I did this to verify I had the correct Authentication policy.

Thank you for any help you can give me.

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [December 19, 2025, 10:41am UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/8 "2025-12-19T10:41:15Z")

</div>

Any chance you are using a Custom Auth Server, and it doesn’t have an Access Policy Rule set up?

I would also suggest that you check the logs in the Okta Admin console, which will give you more insights into that error.

---

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 19, 2025, 8:47pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/9 "2025-12-19T20:47:24Z")

</div>

If I understand correctly, I set the Custom Authorization Server in App’s Sign-on settings. I have attached a screen shot of my App’s Sign-on settings. I did not set a custom auth server.

I looked at the logs in the admin console. I have inclued the info from the screen below. The log CSV is huge.

I see:  
`OAuth2 authorization request`  
`FAILURE: no_matching_policy`  
`default (AuthorizationServer)`

OK, so I guess I need an auth policy. I did assign my user go the app in the Directory settings, as well as assigning the Everyone Goup to the app. What else do I need to do?

My log has 4 entries for me trying to access app.

```auto
Dec 19 15:24:07
MyWebApp3 (PublicClientApp)
192.19.161.250
OAuth2 authorization request
FAILURE: no_matching_policy
default (AuthorizationServer)

Dec 19 15:24:07
Kenneth Shine (User)
192.19.161.250
User login to Okta
SUCCESS
Password (AuthenticatorEnrollment)
OpenID Connect Client (AppInstance)
Dec 19 15:24:07

Kenneth Shine (User)
192.19.161.250
Authentication of user via MFA
SUCCESS
Kenneth Shine (User)
Password (AuthenticatorEnrollment)

Dec 19 15:24:01
Kenneth Shine (User)
192.19.161.250
Evaluation of sign-on policy
CHALLENGE

```

 ![OKTA_app_policy_settings](https://global.discourse-cdn.com/oktadev/original/2X/0/097cb5c73e121f27eaa40d9f8791e204cd044e84.png)

```auto

OpenID Connect Client (AppInstance)
Default Rule (Rule)
3 more targets

```

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [December 20, 2025, 10:53pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/10 "2025-12-20T22:53:55Z")

</div>

The no\_matching\_policy can either be due to this - [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/error-idx-error-code-no-matching-policy-you-are-not-allowed-to-access-this-app-to-request-access-contact-an-admin?language=en_US)

or this -

> [@Web sign in failed because no\_matching\_policy](https://devforum.okta.com/t/web-sign-in-failed-because-no-matching-policy/31489):
>
> I created an okta application for test Add person and assign to application Run WebSignIn sample in okta-mobile-swift sdk Input correct issuer and clientId and redirect uri in okta.plist click sign in input user name and password, got “You are not allowed to access …” check system log in developer system, and got log: my okta appliaction config: Grant type : Client Credentials, Authorization Code, Refresh Token, Interaction Code And all rules are passed And the access testing tool s…

---

<div class="post-metadata">

**Author:** ![kenshine](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@kenshine](https://devforum.okta.com/u/kenshine)\
**Post date:** [December 22, 2025, 6:54pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/11 "2025-12-22T18:54:23Z")

</div>

I created an access policy and was able to successfully run the application.

As I said, I was following the instructions in the beginner’s example listed below.  
Why didn’t the instructions include the important information that you needed an access policy since an AP is required. I wasted many hours because of this.

> **[samples-java-spring/okta-hosted-login at master · okta/samples-java-spring](https://github.com/okta/samples-java-spring/tree/master/okta-hosted-login)**
>
> Spring Boot samples. Contribute to okta/samples-java-spring development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 21, 2026, 6:54pm UTC](https://devforum.okta.com/t/you-are-not-allowed-to-access-this-app-returned-even-though-everyone-has-access-to-oidc-app/34672/12 "2026-01-21T18:54:48Z")

</div>

Closed on January 21, 2026, 6:54pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
