# Why can I not log into my perspective session after creating a Database Authentication mode?

**URL:** <https://forum.inductiveautomation.com/t/why-can-i-not-log-into-my-perspective-session-after-creating-a-database-authentication-mode/75430>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 22, 2023, 10:39pm UTC](https://forum.inductiveautomation.com/t/why-can-i-not-log-into-my-perspective-session-after-creating-a-database-authentication-mode/75430 "2023-06-22T22:39:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [June 22, 2023, 10:39pm UTC](https://forum.inductiveautomation.com/t/why-can-i-not-log-into-my-perspective-session-after-creating-a-database-authentication-mode/75430/1 "2023-06-22T22:39:33Z")

</div>

Hi all,

I was attempting to create a database authentication mode for a project and so to make sure I didn't cause any errors I did it on a different project that was using a different user source and database connection. However, after creating this database authentication mode I was unable to log into any of my projects, they all give me this:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/59b23b6cd71646ca0cdfe0d15379be710793d1e1.png)

even though when I verify the user source that is linked to this project I get:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bfba2af3afc90dccfd5f4137b514a2a6a80e6ab6.png)

Has anyone encountered this issue or know how to fix it? I really don't understand what the issue I've created as the projects are on the same gateway, but had different user sources and database connections.

Thank you,

Cam

---

<div class="post-metadata">

**Author:** ![Hayden\_Watson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hayden_watson/32/48792_2.png) [@Hayden\_Watson](https://forum.inductiveautomation.com/u/Hayden_Watson)\
**Post date:** [June 23, 2023, 9:30am UTC](https://forum.inductiveautomation.com/t/why-can-i-not-log-into-my-perspective-session-after-creating-a-database-authentication-mode/75430/2 "2023-06-23T09:30:11Z")

</div>

I would say check how the identity providers are configured to use your new database data source, and that your project is set to use this identity providers.

---

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [June 23, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/why-can-i-not-log-into-my-perspective-session-after-creating-a-database-authentication-mode/75430/3 "2023-06-23T14:22:44Z")

</div>

Solved.

Thank you Hayden, It was under the identity provider. Both projects were using the same identity provider so when I made a new one it must have forced it to change from the default I'd set originally to the overall default of the system which is why I couldn't log in.
