-
Notifications
You must be signed in to change notification settings - Fork 390
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
Add verification for password oauth token #10800
Conversation
4b58c63
to
d619d45
Compare
d619d45
to
c4b0b31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A verified session sending verification_key
to verify-session
probably shouldn't be issuing a new verification code? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder ppy/osu-notification-server#55 also should be deployed after this is deployed.
Given that we don't yet have any setup for notification server in the game yet, is it fine to ignore this for now? Do we need to poll or something to handle the scenario? |
ignoring it would confuse users. I guess a token status endpoint could be added... |
Cancel that, we do have support for notification websocket handling (see https://github.com/ppy/osu/blob/27c497145f87449ac17c08796fc57026d3129f2e/osu.Game/Online/Notifications/WebSocket/WebSocketNotificationsClientConnector.cs#L16-L45) But work on this will likely happen early next year from the client side, so let's leave this PR in limbo for now. |
I would like to get started on this client-side, but I'm not sure I get what fits where exactly, so I'm gonna have a few questions here.
|
seems mostly right. The newVerified event is always published regardless of the source. I don't think it matters much in the context of client though.
mainly only POST requests will return verification required response (exceptions etc applies). It's the same as web at the moment.
a logout event means the session/token is no longer valid. One case would be when the user changes password (on web) it'll log out all other sessions and tokens. technically even without handling it any further requests will be denied anyway but at least in osu-web a forced logout will be immediately applied. |
On
/me
endpoint response, there's a new attributesession_verified
.Additionally, notification server will also send verification event when the verification link is opened (
{ "event": "verified" }
)