File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
yew-oauth2-redirect-example/src Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -49,26 +49,23 @@ pub mod openid {
49
49
}
50
50
51
51
/// Set an override for the URL for ending the session.
52
- pub fn with_end_session_url ( mut self , end_session_url : impl Into < Option < String > > ) -> Self {
53
- self . end_session_url = end_session_url. into ( ) ;
52
+ pub fn with_end_session_url ( mut self , end_session_url : impl Into < String > ) -> Self {
53
+ self . end_session_url = Some ( end_session_url. into ( ) ) ;
54
54
self
55
55
}
56
56
57
57
/// Set the URL the issuer should redirect to after the logout
58
- pub fn with_after_logout_url (
59
- mut self ,
60
- after_logout_url : impl Into < Option < String > > ,
61
- ) -> Self {
62
- self . after_logout_url = after_logout_url. into ( ) ;
58
+ pub fn with_after_logout_url ( mut self , after_logout_url : impl Into < String > ) -> Self {
59
+ self . after_logout_url = Some ( after_logout_url. into ( ) ) ;
63
60
self
64
61
}
65
62
66
63
/// Set the name of the post logout redirect query parameter
67
64
pub fn with_post_logout_redirect_name (
68
65
mut self ,
69
- post_logout_redirect_name : impl Into < Option < String > > ,
66
+ post_logout_redirect_name : impl Into < String > ,
70
67
) -> Self {
71
- self . post_logout_redirect_name = post_logout_redirect_name. into ( ) ;
68
+ self . post_logout_redirect_name = Some ( post_logout_redirect_name. into ( ) ) ;
72
69
self
73
70
}
74
71
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ pub fn app() -> Html {
129
129
back to the current page, which is detected as a new session, and will try to log in
130
130
again, if the page requires this.
131
131
*/
132
- . with_after_logout_url ( Some ( "/" . into ( ) ) ) ;
132
+ . with_after_logout_url ( "/" ) ;
133
133
134
134
let mode = if cfg ! ( feature = "openid" ) {
135
135
"OpenID Connect"
You can’t perform that action at this time.
0 commit comments