Skip to content

Commit

Permalink
masquerade as Keycloak for Supabase compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Apr 8, 2024
1 parent 442d069 commit dbeb4b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/protocol/openid-connect/auth.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { APIRoute } from 'astro'

export const GET: APIRoute = async Astro => {
return new Response(null, {
status: 302,
headers: {
location: `/auth/authorize?${Astro.url.searchParams}`,
},
})
}
1 change: 1 addition & 0 deletions src/pages/protocol/openid-connect/token.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { POST } from '../../auth/token'
1 change: 1 addition & 0 deletions src/pages/protocol/openid-connect/userinfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { GET } from '../../auth/userinfo'

0 comments on commit dbeb4b9

Please sign in to comment.