# Setup authentication and authorization for IDAC Brazil

**URL:** <https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373>\
**Category:** Independent Data Access Centers\
**Tags:** idac, oidc\
**Created:** [September 10, 2024, 4:01pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373 "2024-09-10T16:01:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![casouza](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@casouza](https://www.rubin.community/u/casouza)\
**Post date:** [September 10, 2024, 4:01pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/1 "2024-09-10T16:01:52Z")

</div>

Hello everyone,

After reviewing the [provided documentation](https://dmtn-253.lsst.io/) and understanding the involved technologies and standards, I’d like to request the setup of our IDAC in the Rubin authentication system.

Currently, we have several services in our environment integrated via Satosa proxy, which interacts with the authentication services of the Brazilian Federated Academic Community (CAFe) and CILogon. In this context, I’d like to register our Satosa instances (homolog and production) as an OpenID Connect Client in the Rubin authentication system.

One point that I’d like to clarify is the OIDC discovery configuration. The Satosa OpenID Connect Client implementation supports configuration discovery via the `/.well-known/openid-configuration` endpoint. Do you have a corresponding URL?

**Satosa homolog**

- **A short name for our IDAC:** IDAC Brazil Dev
- **URLs to redirect:** [https://satosa-dev.linea.org.br/rubin\_oidc](https://satosa-dev.linea.org.br/rubin_oidc)

**Satosa production**

- **A short name for our IDAC:** IDAC Brazil
- **URLs to redirect:** [https://satosa.linea.org.br/rubin\_oidc](https://satosa.linea.org.br/rubin_oidc)

Thank you for the support.

---

<div class="post-metadata">

**Author:** ![knutago](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/knutago/32/602_2.png) [@knutago](https://www.rubin.community/u/knutago)\
**Post date:** [September 17, 2024, 9:22am UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/2 "2024-09-17T09:22:45Z")

</div>

Hi Carlos, thanks for posting the question. This is just to acknowledge the question, and that the SQuaRE team are looking at it.

---

<div class="post-metadata">

**Author:** ![frossie](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/frossie/32/9_2.png) [@frossie](https://www.rubin.community/u/frossie)\
**Post date:** [September 17, 2024, 7:32pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/3 "2024-09-17T19:32:42Z")

</div>

Hi Carlos, I see you have an account on the lsstc slack workspace, @rra will send you the credentials you need there.

---

<div class="post-metadata">

**Author:** ![rra](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rra/32/978_2.png) [@rra](https://www.rubin.community/u/rra)\
**Post date:** [September 17, 2024, 11:59pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/4 "2024-09-17T23:59:36Z")

</div>

I have staged this client configuration for data.lsst.cloud and will deploy it this Thursday during our normal patch window from 15:00 to 17:00 Pacific Daylight Time. I sent Carlos the `client_id` and `client_password` information for both clients via Slack and a one-time link.

This is the first client for the data.lsst.cloud Science Platform, so currently none of the OpenID Connect server URLs will work. They will be enabled on Thursday.

Once that is done, use [https://data.lsst.cloud/.well-known/openid-configuration](https://data.lsst.cloud/.well-known/openid-configuration) for configuration discovery. Hopefully that will work. Let us know if you run into problems; at present, this is a very limited OpenID Connect implementation and only supports a narrow subset of the full standard.

---

<div class="post-metadata">

**Author:** ![casouza](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@casouza](https://www.rubin.community/u/casouza)\
**Post date:** [September 24, 2024, 12:18am UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/5 "2024-09-24T00:18:56Z")

</div>

Thank you @rra @knutago @frossie for the support.

We’re going to configure and start testing in our side. I’ll keep you posted on the progress.

---

<div class="post-metadata">

**Author:** ![casouza](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@casouza](https://www.rubin.community/u/casouza)\
**Post date:** [October 17, 2024, 5:42pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/6 "2024-10-17T17:42:31Z")

</div>

Hello everyone,

We successfully configured our Satosa proxy (homolog environment) with the information provided. After completing the configuration, we were able to authenticate a user registered in the Rubin authentication system and retrieve the corresponding data rights information. This confirms that the integration is working as expected.

However, during the process, we identified an issue with the Satosa OIDC backend plugin. Specifically, the plugin does not correctly handle the token endpoint authentication method supported by the OpenID Connect Provider’s configuration, which is downloaded from [https://data.lsst.cloud/.well-known/openid-configuration](https://data.lsst.cloud/.well-known/openid-configuration).

We have created an issue for this in the Satosa repository, which you can find here:[https://github.com/IdentityPython/SATOSA/issues/476](https://github.com/IdentityPython/SATOSA/issues/476)

I’ll keep you posted on the progress.

Thank you for the support.

---

<div class="post-metadata">

**Author:** ![rra](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rra/32/978_2.png) [@rra](https://www.rubin.community/u/rra)\
**Post date:** [November 13, 2024, 12:44am UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/7 "2024-11-13T00:44:50Z")

</div>

We have added support for `client_secret_basic` in Gafaelfawr 12.1.0, so hopefully Satora should now work without further changes, at least for the token retrieval protocol.

---

<div class="post-metadata">

**Author:** ![casouza](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@casouza](https://www.rubin.community/u/casouza)\
**Post date:** [November 14, 2024, 4:45pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/8 "2024-11-14T16:45:16Z")

</div>

Hello Russ,

Thank you for that.

We also identified an _ **new double slash** _ in some attributes at [https://data.lsst.cloud/.well-known/openid-configuration](https://data.lsst.cloud/.well-known/openid-configuration) that is impacting the request routing and causing authentication errors, e.g.: “authorization\_endpoint”: “[https://data.lsst.cloud//auth/openid/login](https://data.lsst.cloud//auth/openid/login)”.

When accessed directly in a browser, it results in a failure to reach the endpoint.

---

<div class="post-metadata">

**Author:** ![rra](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rra/32/978_2.png) [@rra](https://www.rubin.community/u/rra)\
**Post date:** [November 20, 2024, 12:07am UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/9 "2024-11-20T00:07:24Z")

</div>

Thanks for the bug report! I tracked down the problem and am testing the fix now. The fixed version should go into production on Thursday (November 21st) during our maintenance window.

---

<div class="post-metadata">

**Author:** ![rra](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rra/32/978_2.png) [@rra](https://www.rubin.community/u/rra)\
**Post date:** [November 22, 2024, 8:06pm UTC](https://www.rubin.community/t/setup-authentication-and-authorization-for-idac-brazil/9373/10 "2024-11-22T20:06:16Z")

</div>

The doubled slash should now be fixed. Thanks again for the report.
