AbsaOSS / login-service

AbsaOSS Common Login gateway using JWT Public key signatures
Apache License 2.0
2 stars 0 forks source link

Built-in user list in config #21

Closed Zejnilovic closed 1 year ago

Zejnilovic commented 1 year ago

Background

I can imagine that for future development, we will need to run the login-gateway without any real connection, just for testing purposes but not testing of the login-gateway.

I propose we have the ability to run the login-gateway and pass the JSON config of the users to it rather than a config for AD or other services.

Feature

Add a run for integration tests options

Example of config JSON

[
  {
    "user": "user1",
    "password": "password1"
    "roles": ["user", "team1", "view"] 
  },
  {
    "user": "admin1",
    "password": "adminpassword1"
    "roles": ["admin", "wheel"] 
  },
]
dk1844 commented 1 year ago

Thanks for the specific example. Such a feature was vaguely outlined already in #5, but as you suggest, it is better if it is broken down to a specific issue like this. I have marked it in #5 that this is related.