Authentication Session #11
Replies: 4 comments 6 replies
-
|
@maxcountryman what do you think of this? |
Beta Was this translation helpful? Give feedback.
-
|
Well, it's actually easier to build something from scratch than fix the existing one. But it's up to you to decide. However, not every user chooses to use a password-based login for their application. They can use oauth or openid which is easier for them to interact with 3rd services such as Github. Also, many of them tend to handle sessions manually. So that made me think adding such a "general authentication session" feature could handle both cases perfectly. P/s: I didn't see the reply box |
Beta Was this translation helpful? Give feedback.
-
|
For further development, In spite of using
let session_manager = AuthSessionManagerLayer::new(session_store).with_secure(true);#[derive(Debug, Clone)]
pub struct AuthSessionManagerLayer<Store: SessionStore> {
inner: SessionManagerLayer<Store>,
}This should be applied to login crate Edited design:
I might miss some features, but in 99% way to handle this, it will cause breaking change. |
Beta Was this translation helpful? Give feedback.
-
|
This should be implemented by authentication libraries instead. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I believe that most people use this for handling authentication session (aka login session) which it's not really implemented here, should this become a feature. If yes,
Beta Was this translation helpful? Give feedback.
All reactions