Authentication
Authentication directly from Browser
import { login, getDefaultSession } from '@inrupt/solid-client-authn-browser'
// ...
async function startLogin() {
// Start the Login Process if not already logged in.
if (!getDefaultSession().info.isLoggedIn) {
await login({
oidcIssuer: "https://login.inrupt.com",
redirectUrl: new URL("/callback", window.location.href).toString(),
clientName: "My application"
});
}
}Callback Function
Authentication Server Side via OIDC auth-code grant
Callback Function
Logout
Authentication for Server Side Single-User Applications
Last updated