Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any way to custom handle authentication fail #921

Closed
LeonDevLifeLog opened this issue Feb 1, 2019 · 1 comment

Comments

@LeonDevLifeLog
Copy link

commented Feb 1, 2019

Ktor Version

1.1.2

Ktor Engine Used(client or server and name)

server: netty

JVM Version, Operating System and Relevant Context

jvm: 1.8 OS: windows 10

Feedback

Default response of authentication fail is 401 status and empty body,and now i want set some message on response body.
I has been read doc and source code,but not find any method to do this.
may be this issue #366 is related

Ktor is a awesome framework! thanks developers!

@LeonDevLifeLog

This comment has been minimized.

Copy link
Author

commented Feb 2, 2019

I has changed my mind,and from another way to salved this problem.
I used the "StatusPages" feature .
😃
thanks lot

cy6erGn0m added a commit that referenced this issue Jun 11, 2019
Introduce challenge builder function (#366, #921, #1130, #798)
Added to form, session and JWT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.