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

POD login & proxy authentication #1091

Merged
merged 21 commits into from
Jan 13, 2023
Merged

POD login & proxy authentication #1091

merged 21 commits into from
Jan 13, 2023

Conversation

srosset81
Copy link
Contributor

@srosset81 srosset81 commented Dec 12, 2022

Close #1063

  • Allow to create one's user profile in a POD, and log in with it
  • Handle multiserver authentication through POD proxy

See https://pad.lescommuns.org/xG1c0W73RrqlYDfApzGX3g

Breaking changes ⚠️

Semantic data provider

The httpClient is not exported anymore from the @semapps/semantic-data-provider package.
It must not be added to the dataProvider setting.

Auth provider

The httpClient and middlewareUri setting should be replaced with the dataProvider.
The middlewareUri is automatically calculated from the dataServers config (= the server with authServer: true)

Before:

import { authProvider } from '@semapps/auth-provider';
import { httpClient } from '@semapps/semantic-data-provider';
export default authProvider({
  middlewareUri: 'http://localhost:3000',
  httpClient
});

After:

import { authProvider } from '@semapps/auth-provider';
import dataProvider from "./dataProvider";
export default authProvider({
  dataProvider
});

Proxy service

The ProxyService is now exported from the @semapps/signature package instead of @semapps/activitypub.

@srosset81 srosset81 mentioned this pull request Dec 12, 2022
@srosset81 srosset81 changed the title POD login POD login & proxy authentication Dec 14, 2022
@srosset81 srosset81 changed the base branch from master to next January 13, 2023 09:58
@srosset81 srosset81 marked this pull request as ready for review January 13, 2023 10:06
@srosset81 srosset81 merged commit 9b831f2 into next Jan 13, 2023
@srosset81 srosset81 deleted the pod-login-2 branch January 13, 2023 10:06
@srosset81 srosset81 mentioned this pull request Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finaliser et fixer l'authentification par proxy
1 participant