aruba / aruba-ansible-modules

Aruba Ansible Modules
Apache License 2.0
80 stars 36 forks source link

CPPM: Token Authentication #59

Closed sboudjema closed 4 years ago

sboudjema commented 4 years ago

It would be nice to be able to set the access token directly instead of having to enter client credentials. This way you don't have to pass the credentials around, you just ask an admin for a 3h token and you can have your fun.

It also would have the advantage of not generating a token for each call to the module.

A call could then look like this:

arubaclearpass_config:
      host: "{{ publisher_ip }}"
      token: "{{ api_token }}"
      method: POST
      api_name: network-device
      data: {....}
sboudjema commented 4 years ago

I can be assigned to this.

karthikeyan-dhandapani commented 4 years ago

@sachaboudjema thanks for the use case and the contribution!

Ansible connection plugin will be used for ClearPass Ansible module in the near future which will eliminate the generation of access token at every task.

karthikeyan-dhandapani commented 4 years ago

The respective PR is verified and merged. Closing the issue!