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

Auth Handler DSL #2

Open
thheinen opened this issue May 7, 2020 · 0 comments
Open

Auth Handler DSL #2

thheinen opened this issue May 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thheinen
Copy link
Collaborator

thheinen commented May 7, 2020

Instead of programmatically define options for authentication handlers, define an easy DSL.

name 'redfish'
desc 'Authentication and Session handling for the Redfish 1.0 API'

option :username, required
option :password, required

login_method  :post
login_path    'SessionService/Sessions/'
login_headers { ... }
login_payload { |auth_options| ... }

logout_method :delete
logout_path   ...

This could result in easy handlers just using the DSL and only more complex ones using the defined interface instead.

@thheinen thheinen added the enhancement New feature or request label May 7, 2020
@thheinen thheinen self-assigned this May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant