1.0.0 • Published 8 months ago

@hexagon6/svelte-solid-webid-check v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

@hexagon6/svelte-solid-webid-check

Purpose

A Svelte component which can do OpenID Connect Discovery.

It is useful to check where a solid webId is being authenticated with a OpenID Connect Identity Provider.

This works by reading the contents of /.well-known/openid-configuration as defined in https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig.

This component can be used to help application developers guide users to set their webId url, for a quick validation on input. It should make it easier to set up a webID-based login for solid applications with svelte / sveltekit.

Demo

Try https://webid.fet.li/webid-check.

Note: check the console if you want to see the result after clicking on "set".

Example usage

<script>
  import WebIdCheck from '@hexagon6/svelte-solid-webid-check'

  let validOIDCEndpoint = ''
</script>

<WebIdCheck
  placeholder={'https://timbl.inrupt.net/profile/card#me'}
  on:valid-oidc-endpoint={({ detail: { oidcEndpoint } }) => {
    validOIDCEndpoint = oidcEndpoint
  }}><span slot="confirm">show</span></WebIdCheck
>

Your solid webId oidc authentication endpoint is {validOIDCEndpoint}

For more examples check out this repo and check out histoire with npm run story:dev or a sveltekit example with npm run dev.

1.0.0

8 months ago

1.0.0-next.2

8 months ago

1.0.0-next.3

8 months ago

1.0.0-next.1

8 months ago

1.0.0-next.0

10 months ago

0.5.0

1 year ago

0.5.1

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.2

1 year ago

0.3.4

1 year ago

0.2.2

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago