Skip to content

Identity 8 doesnt work on PostgresSQL #53433

@Temoxa

Description

@Temoxa

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hello!

I make mini app where use AddIdentityApiEndpoints and AddEntityFrameworkStores in PostgresSql.

TestIndetity8.zip

  1. Empty AspNetUserTokens

When your loaded and extract arhive app then run docker compose up --build -d
and go to url http://localhost:8080/swagger/index.html
will be opened swagger as is image below
image

I call method /register then call /login its ok

BUT then connect to database and call query SELECT user_id, login_provider, "name", value FROM tst."AspNetUserTokens"; have empty result. Why? Where tokens after succesfull /login ?

  1. How extend methods Identity (/register, /login, /manage/info etc) ?

maybe I didn’t understand how to work, please help

Expected Behavior

1 - when call /login in table AspNetUserTokens insert record
2 - configurate Identity EndPoints

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0.1

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions