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

Test "login" mutation #23

Closed
Sddilora opened this issue Apr 1, 2024 · 3 comments
Closed

Test "login" mutation #23

Sddilora opened this issue Apr 1, 2024 · 3 comments
Assignees
Labels
Be sub-issue Sub-task within a larger task testing Tasks or issues for testing system functionality and reporting any identified issues

Comments

@Sddilora
Copy link
Member

Sddilora commented Apr 1, 2024

Test the "login" mutation with all possible cases and create an issue if any bugs are found. If you encounter unexpected behavior or are unsure if it is intended, please create an issue for that as well.

You can find an example issue and bug report (or a question if this is a bug) in this link.

"Test GraphQL Query and Mutation" guide is available for further assistance.

@Sddilora Sddilora added the testing Tasks or issues for testing system functionality and reporting any identified issues label Apr 1, 2024
@Feyzanrs Feyzanrs added the sub-issue Sub-task within a larger task label Apr 1, 2024
@husamettinarabaci
Copy link
Member

Please add a correct estimated time.

@Maraza25
Copy link
Member

  • Tested with correct username and password.
  • Tested with wrong username and password.
  • Tested with different username and different password.
  • Simple SQL injection tests were performed.

All tests were passed successfully.

@ebrarkesici
Copy link
Member

ebrarkesici commented May 7, 2024

I also tried this issue in graphql, made this query and the result was like this:

mutation login{
  login(loginRequest:{
    UserName:"op_admin"
    Email:"[email protected]"
    Password:"opopopop"
  }){
    AuthenticationToken
    RefreshToken
  }
}
{
  "data": {
    "login": {
      "AuthenticationToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOWNlZTY2YTYtODc4OC00N2JhLWI1M2UtYzBmYjNhYjI5NzIyIiwiZGF0YSI6eyJpZCI6IjljZWU2NmE2LTg3ODgtNDdiYS1iNTNlLWMwZmIzYWIyOTcyMiIsInVzZXJfbmFtZSI6Im9wX2FkbWluIiwiZW1haWwiOiJvcF9hZG1pbkBvcC5jb20iLCJyb2xlIjoiQURNSU4iLCJ1c2VyX3R5cGUiOjEsInVzZXJfc3RhdHVzIjoxLCJ0YWdzIjpudWxsLCJmaXJzdF9uYW1lIjoiIiwibGFzdF9uYW1lIjoiIiwiY3JlYXRlZF9hdCI6IjAwMDEtMDEtMDFUMDA6MDA6MDBaIiwidXBkYXRlZF9hdCI6IjIwMjQtMDQtMDZUMDA6NTE6NTUuMzc1MDIxKzAzOjAwIn0sImV4cCI6MTcxNTE3Njg0MH0.h0B2z14Y9Bj7s20mHRhgjROr1-q6UeZXtwAAUm_CWQU",
      "RefreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOWNlZTY2YTYtODc4OC00N2JhLWI1M2UtYzBmYjNhYjI5NzIyIiwiZXhwIjoxNzE3MTY0MDQwfQ.MTClowWDHqslH95RooXNd9D0Dl7LnjGib59RlZGVmgw"
    }
  }
}

login mutation works without any problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Be sub-issue Sub-task within a larger task testing Tasks or issues for testing system functionality and reporting any identified issues
Projects
None yet
Development

No branches or pull requests

5 participants