// SignIn handles the sign_in endpoint. It attempts to authenticate the user,
// and if the user is not authenticated, it renders a sign in page.
SignIn handles the sign_in endpoint. It attempts to authenticate the user,
and if the user is not authenticated, it renders a sign in page.
// SignIn handles the sign_in endpoint . It attempts to authenticate the user // and if the user is not authenticated it renders a sign in page .
func (a *Authenticate) SignIn(w http.ResponseWriter, r *http.Request) {
	session, err := a.authenticate(w, r)
	if err != nil {
		log.FromRequest(r).Warn().Err(err).Msg("authenticate: authenticate error")
		a.sessionStore.ClearSession(w, r)
		a.OAuthStart(w, r)
	}
	log.FromRequest(r).Debug().Msg("authenticate: user authenticated")
	a.ProxyCallback(w, r, session)
}
func ( a * Authenticate ) SignIn ( w http . ResponseWriter , r * http . Request ) { session , err := a . authenticate ( w , r ) if err != nil { log . FromRequest ( r ) . Warn ( ) . Err ( err ) . Msg ( " " ) a . sessionStore . ClearSession ( w , r ) a . OAuthStart ( w , r ) } log . FromRequest ( r ) . Debug ( ) . Msg ( " " ) a . ProxyCallback ( w , r , session ) }
SignIn handles the sign_in endpoint.
SignIn handles the sign_in endpoint .