-
Notifications
You must be signed in to change notification settings - Fork 14
RAINCATCH-1190 - Extract security interface #97
Conversation
|
||
// Use keycloak middleware & define applications logout route | ||
app.use(keycloak.middleware({logout: '/logout'})); | ||
export class KeycloakSecurity implements EndpointSecurity { |
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.
I still think that despite this being really simple we should have it as separate module.
// Create a session store | ||
const memoryStore = new session.MemoryStore(); | ||
this.keycloak = new Keycloak({ store: memoryStore }, config.keycloakConfig); | ||
} |
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.
also re-add the app.use(keycloak.middleware({logout: '/logout'}));
to use keycloak middleware and define the logout route
cloud/auth/src/EndpointSecurity.ts
Outdated
* @param redirect - location to redirect after successful authentication | ||
* @param loginError - location to redirect after failed authentication | ||
*/ | ||
authenticate(redirect: string, loginError: string): express.Handler; |
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.
would it be possible to remove this from the interface if this only refers to passport?
1dec531
to
b9bb465
Compare
@JameelB Really good point about dropping this method. |
Changes Unknown when pulling 79e194d on wtrocki:RAINCATCH-1190 into ** on feedhenry-raincatcher:master**. |
1 similar comment
Changes Unknown when pulling 79e194d on wtrocki:RAINCATCH-1190 into ** on feedhenry-raincatcher:master**. |
No description provided.