sib-auth issueshttps://git.startinblox.com/framework/sib-auth/-/issues2021-04-15T15:53:07+02:00https://git.startinblox.com/framework/sib-auth/-/issues/44Implement onSessionRestore to avoid wrong redirect2021-04-15T15:53:07+02:00Matthieu Fesseliermatthieu@startinblox.comImplement onSessionRestore to avoid wrong redirectWith `solid-client-authn-js`, when loading a page provided by `solid-router`, the authentication process wrongly redirects to / all the time.
We need to implement the `onSessionRestore` handler as explained [in the documentation](https:...With `solid-client-authn-js`, when loading a page provided by `solid-router`, the authentication process wrongly redirects to / all the time.
We need to implement the `onSessionRestore` handler as explained [in the documentation](https://docs.inrupt.com/developer-tools/javascript/client-libraries/tutorial/restore-session-browser-refresh/#use-session-restore-event-handler)https://git.startinblox.com/framework/sib-auth/-/issues/43Re-enable logging in with another Identity Provider2021-03-22T09:49:36+01:00Calum MackervoyRe-enable logging in with another Identity Providerhttps://git.startinblox.com/framework/sib-auth/issues/41#note_55037
> A while ago we disabled the "select my OIDC provider" features in the login screen.. I'd like to re-enable them if we can so that I can test their implementation for ...https://git.startinblox.com/framework/sib-auth/issues/41#note_55037
> A while ago we disabled the "select my OIDC provider" features in the login screen.. I'd like to re-enable them if we can so that I can test their implementation for Trust ? e.g. https://git.startinblox.com/djangoldp-packages/djangoldp-account/issues/45
Moving this to its own issue, I need to test that it works with the Solid-OIDC updatesCalum MackervoyCalum Mackervoyhttps://git.startinblox.com/framework/sib-auth/-/issues/40Solid auth not stored locally2020-12-11T09:32:07+01:00Fabien QuatravauxSolid auth not stored locallyI'm trying to use `<solid-auth>` with OIDC servers that are not implemented by DjangoLDP.
```html
<sib-auth>
<sib-auth-provider
data-authority="https://solidcommunity.net"
data-id="solid-authority"
data-client-name="Experi...I'm trying to use `<solid-auth>` with OIDC servers that are not implemented by DjangoLDP.
```html
<sib-auth>
<sib-auth-provider
data-authority="https://solidcommunity.net"
data-id="solid-authority"
data-client-name="Experimentation"
/>
</sib-auth>
<button onclick="document.querySelector('sib-auth').login()">Connect</button>
```
When I try this, the authentication works well, :
![image](/uploads/1208ce2b7093a43431333bb86304128e/image.png)
![image](/uploads/9023d6ac9afdb044b90706c03bec76cf/image.png)
When I have accepted the connexion, I get redirected to my client with this access token :
```json
{
"iss": "https://solidcommunity.net",
"aud": [
"c407c78bd662ff640e70a6a009c886b4"
],
"sub": "https://fabien4vo.solidcommunity.net/profile/card#me",
"exp": 1607595442,
"iat": 1606385842,
"jti": "24d5dc6dbfdd0492",
"scope": "openid"
}
```
But is is not stored in local storage and the following requests made with the store do not use it.
If I use the original `solid-auth-client` code, it's working well :
```html
<button onclick="login()">Connect</button>
<script src="https://solid.github.io/solid-auth-client/dist/solid-auth-client.bundle.js"></script>
<script>
async function login() {
const session = await solid.auth.currentSession();
if (!session)
await SolidAuthClient.login('https://solidcommunity.net');
else
alert(`Logged in as ${session.webId}`);
}
</script>
```
![image](/uploads/a3fff368ac04873fb25e167e4b97d09c/image.png)https://git.startinblox.com/framework/sib-auth/-/issues/35document what to do server side2020-12-01T10:06:23+01:00Clémentdocument what to do server sidehow to install `oidc_provider` or other?how to install `oidc_provider` or other?ClémentClémenthttps://git.startinblox.com/framework/sib-auth/-/issues/32Federation: Login on distant server - Session duration2020-07-23T11:19:13+02:00Jean-Baptiste PasquierFederation: Login on distant server - Session durationNot sure if it's server side or client side though. Need digging.
Related: https://git.startinblox.com/djangoldp-packages/djangoldp-account/issues/43
Context: When I login on test2's server with my user on test1, after a while (~15mn),...Not sure if it's server side or client side though. Need digging.
Related: https://git.startinblox.com/djangoldp-packages/djangoldp-account/issues/43
Context: When I login on test2's server with my user on test1, after a while (~15mn), I get logged out on front-end, but I'm still logged in on test1 server.
@balessan Don't know what to do with this one, here's a gift for you. :)ClémentClémenthttps://git.startinblox.com/framework/sib-auth/-/issues/31Allow to use a source to provide list of providers2020-03-16T11:12:34+01:00Jean-Baptiste PasquierAllow to use a source to provide list of providers(Feature request from Sib App)
To allow easier management for admin of a Sib App, we would like to use a `data-src` on `sib-auth` directly.
Something like that:
```html
<sib-auth data-src="https://my_server/providers/" data-client-nam...(Feature request from Sib App)
To allow easier management for admin of a Sib App, we would like to use a `data-src` on `sib-auth` directly.
Something like that:
```html
<sib-auth data-src="https://my_server/providers/" data-client-name="My Client Name"></sib-auth>
```
```json
{
"@id":"https://my_server/providers/",
"@type":"ldp:Container"
"ldp:contains": [
{
"@id":"https://my_server/providers/1/",
"authorityUrl":"https://my_server/",
"authority":"My authority name",
"permissions":[{"mode":{"@type":"view"}}]
},
],
"@type":"hd:provider",
"permissions":[{"mode":{"@type":"view"}}],
"@context":"https://cdn.happy-dev.fr/owl/hdcontext.jsonld"
}
```
Will generate this:
```html
<sib-auth data-src="https://my_server/providers/" data-client-name="My Client Name">
<sib-auth-provider
data-authority="https://my_server/"
data-id="My authority name"
data-client-name="My Client Name"
></sib-auth-provider>
</sib-auth>
```
@balessan @sylvain @clement Does this sounds fine for you?https://git.startinblox.com/framework/sib-auth/-/issues/27add unit tests2019-09-10T10:44:06+02:00Clémentadd unit testshttps://git.startinblox.com/framework/sib-auth/-/issues/21On token expire, user infos are still on local storage2020-01-17T09:14:54+01:00Jean-Baptiste PasquierOn token expire, user infos are still on local storageWhen `document.querySelector('sib-auth').getUser().expires_at` is prior to now, you can still use `document.querySelector('sib-auth').getUser()` even if console say `UserManager.getUser: user not found is storage`.
Should I handle it on...When `document.querySelector('sib-auth').getUser().expires_at` is prior to now, you can still use `document.querySelector('sib-auth').getUser()` even if console say `UserManager.getUser: user not found is storage`.
Should I handle it on client side ?ClémentClémenthttps://git.startinblox.com/framework/sib-auth/-/issues/19sib-auth-provider should accept a label and an icon2020-11-30T15:36:22+01:00Sylvain Le Bonsib-auth-provider should accept a label and an iconThey would be displayed in the list where the user selects their providerThey would be displayed in the list where the user selects their providerhttps://git.startinblox.com/framework/sib-auth/-/issues/18sib-auth should display a login/logout button2020-07-23T11:38:05+02:00Sylvain Le Bonsib-auth should display a login/logout buttonThe code
```html
<sib-auth label-login="Se connecter" label-logout="Se déconnecter">
<sib-auth-provider data-authority="https://api.paris.happy-dev.fr/openid/" data-client_id="176246" data-id="paris" data-response_type="id_token token"...The code
```html
<sib-auth label-login="Se connecter" label-logout="Se déconnecter">
<sib-auth-provider data-authority="https://api.paris.happy-dev.fr/openid/" data-client_id="176246" data-id="paris" data-response_type="id_token token" data-scope="openid profile email" data-automaticSilentRenew="true" data-loadUserInfo="true">
<sib-auth-provider data-authority="https://api.nantes.happy-dev.fr/openid/" data-client_id="54353" data-id="nantes" data-response_type="id_token token" data-scope="openid profile email" data-automaticSilentRenew="true" data-loadUserInfo="true">
</sib-auth>
```
should display a button with "Se connecter" or "Se déconnecter" depending on if the user is logged in or not. When clicking on "Se connecter", it should open a list of the providers, and log the user in when they click on one.