Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Session managament API implementation #28

Merged
merged 13 commits into from
Jul 25, 2019

Conversation

pamodaaw
Copy link
Contributor

@pamodaaw pamodaaw commented Jul 25, 2019

Purpose

This PR will add the session management APIs

  • GET /{user-id}/sessions
  • DELETE /{user-id}/sessions
  • DELETE /{user-id}/sessions/{session-id}
  • GET /me/sessions
  • DELETE /me/sessions
  • DELETE /me/sessions/{session-id}

Approach

Uses the backend functionalities introduced by wso2/carbon-identity-framework#2288

Fixes wso2/product-is#5769

@pamodaaw pamodaaw changed the title Add Session managaeent API implementation Add Session managament API implementation Jul 25, 2019
@pamodaaw pamodaaw force-pushed the feature-session-api branch from 6f1d5bc to 358a135 Compare July 25, 2019 08:36

} catch (SessionManagementException e) {
log.error(e.getMessage());
handleSessionManagementException(e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return exception from the handleSessionManagementException method and throw from here, then no need return null

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


schemes:
- https
# host: is.wso2.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host: localhost:9443
basePath: /api/users/v1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@pamodaaw pamodaaw force-pushed the feature-session-api branch from 7d0944d to 1900121 Compare July 25, 2019 09:55
@Override
public String toString() {

return code + " | " + message;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return code + " | " + message;
return getCode() + " | " + message;

<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the usage of junit ?

@pamodaaw pamodaaw force-pushed the feature-session-api branch from 1900121 to c89922f Compare July 25, 2019 11:05
@pamodaaw pamodaaw force-pushed the feature-session-api branch from c89922f to 6c814e7 Compare July 25, 2019 11:33
@ayshsandu ayshsandu merged commit 342e762 into wso2:master Jul 25, 2019
janakamarasena pushed a commit to janakamarasena/identity-api-user that referenced this pull request Sep 27, 2019
janakamarasena pushed a commit to janakamarasena/identity-api-user that referenced this pull request Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement APIs to retrieve authentication session information
4 participants