(w http.ResponseWriter, r *http.Request, userId string, organizationUserId string)
| 94 | } |
| 95 | |
| 96 | func (i *IdentityManager) Authenticate(w http.ResponseWriter, r *http.Request, userId string, organizationUserId string) { |
| 97 | i.Persister.Rotate(w, r) |
| 98 | i.Persister.Set(w, r, authenticated_user_id_session_key, userId) |
| 99 | i.Persister.Set(w, r, authroized_user_id_session_key, organizationUserId) |
| 100 | } |
| 101 | |
| 102 | func (i *IdentityManager) Logout(w http.ResponseWriter, r *http.Request) { |
| 103 | i.Persister.Set(w, r, authenticated_user_id_session_key, "") |