Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
f8f7d87
initial push
ahmedraza118 Mar 24, 2026
498d1c6
Merge branch 'feat/stage' into feat/aa-auth
ahmedraza118 Mar 25, 2026
058be51
push: auth guard, keycloak, signup/login page design
ahmedraza118 Mar 25, 2026
db9f1df
fix: for oidc
ahmedraza118 Mar 26, 2026
0705b38
fix: public routes
ahmedraza118 Mar 26, 2026
c3fa5d5
debug console logs
ahmedraza118 Mar 27, 2026
974894a
fix: logout redirect
ahmedraza118 Mar 27, 2026
263355a
fix: logout push
ahmedraza118 Mar 27, 2026
b1142af
fix: bug fix in logout
ahmedraza118 Mar 27, 2026
34dbe4b
fix: redirect to app origin
ahmedraza118 Mar 27, 2026
8f749fe
try disconnect from wallet on logout
ahmedraza118 Mar 27, 2026
a953f91
try disconnect from wallet
ahmedraza118 Mar 27, 2026
30e1fe1
fix logout issue
ahmedraza118 Mar 27, 2026
38fc750
fix redirect after logout
ahmedraza118 Mar 27, 2026
0162ff0
test logout push
ahmedraza118 Mar 30, 2026
c6e21d6
test fix
ahmedraza118 Mar 30, 2026
dcaf2f8
test fix
ahmedraza118 Mar 30, 2026
0584892
fix issue redirect
ahmedraza118 Mar 30, 2026
f462ac6
test fix for logouturl
ahmedraza118 Mar 30, 2026
f7c8e6e
test logout uri
ahmedraza118 Mar 30, 2026
80935aa
test push
ahmedraza118 Mar 30, 2026
8fca157
test fix
ahmedraza118 Mar 30, 2026
59f4952
refactor: restructure signup component by removing LeftColumn and Rig…
tom1145 Mar 30, 2026
928edcd
Merge branch 'feat/aa-auth' into feat/aa-auth-design
tom1145 Mar 30, 2026
3df5307
test fix
ahmedraza118 Mar 31, 2026
ce91568
Merge branch 'feat/aa-auth' into feat/aa-auth-design
tom1145 Mar 31, 2026
556e919
clean code push
ahmedraza118 Mar 31, 2026
3397b7e
comments removed
ahmedraza118 Mar 31, 2026
d5579c3
refactor: simplify authentication logic by removing mock providers an…
tom1145 Mar 31, 2026
7bdc8d1
refactor: auth flow gating and simplify auth UI plumbing
tom1145 Mar 31, 2026
644c953
feat: implement AuthEntry component for authentication handling in menu
tom1145 Mar 31, 2026
62ecf65
Merge branch 'feat/aa-auth' into feat/aa-auth-design
tom1145 Mar 31, 2026
b3e980d
Merge pull request #331 from OceanProtocolEnterprise/feat/aa-auth-design
tom1145 Mar 31, 2026
f31b88e
signup fix pushed
ahmedraza118 Mar 31, 2026
dc36735
test signup push
ahmedraza118 Mar 31, 2026
54dbe95
test signup fix
ahmedraza118 Apr 1, 2026
a0028df
test signup push
ahmedraza118 Apr 1, 2026
68697e7
test signup push
ahmedraza118 Apr 1, 2026
c950ebf
feat: enhance OIDC logout handling and session restoration in useAuth…
tom1145 Apr 1, 2026
d89447e
Merge branch 'feat/aa-auth' of github.com:OceanProtocolEnterprise/mar…
tom1145 Apr 1, 2026
ea62773
feat: render menu buttons based on auth status
tom1145 Apr 1, 2026
f00f5b0
feat(WIP): implement setup panel for wallet and SSI connection in aut…
tom1145 Apr 1, 2026
ddf1547
feat: auth mode management and UI updates
tom1145 Apr 1, 2026
134f2cd
feat: implement SSI connection handling and UI updates in auth flow
tom1145 Apr 2, 2026
e4576fa
feat: refactor auth flow components to improve loading state manageme…
tom1145 Apr 2, 2026
c336175
refactor: revert sign method perseverence on sign up
tom1145 Apr 2, 2026
fa73e16
feat: implement logout panel and enhance OIDC logout handling with st…
tom1145 Apr 2, 2026
9f38301
feat: conditional checks for SSI env var in auth setup
tom1145 Apr 2, 2026
8597cf8
feat: enhance auth flow by updating SetupPanel and don't show ssi and…
tom1145 Apr 6, 2026
c3b639e
feat: enhance auth flow by integrating authEnabled checks in componen…
tom1145 Apr 6, 2026
f9b2bee
feat: update user profile menu
tom1145 Apr 9, 2026
e987474
feat: enhance wallet details display with address formatting and copy…
tom1145 Apr 9, 2026
d0c733f
feat: refactor AuthGuard to check public routes and redirect to login
tom1145 Apr 9, 2026
6668b27
feat: refactor wallet action buttons to use ActionButton component wi…
tom1145 Apr 9, 2026
df7687a
Refine wallet action alignment and hover states
tom1145 Apr 9, 2026
fe20ab9
refactor: style view profile
tom1145 Apr 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,30 @@
# NEXT_PUBLIC_CONSUME_MARKET_FEE=0.1
# NEXT_PUBLIC_MARKET_FEE_ADDRESS=0x0db00a90deee402256cb1df89f3e14d6b9130fdd
# NEXT_PUBLIC_ALLOWED_ERC20_ADDRESSES={"11155111":["0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985","0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4", "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"]}



# (Keycloak .env.example)

# Enable auth
# NEXT_PUBLIC_AUTH_ENABLED=true
# NEXT_PUBLIC_AUTH_PROVIDER=keycloak

# Keycloak Configuration (provided by DevOps)
# NEXT_PUBLIC_KEYCLOAK_ISSUER=http://localhost:8080/realms/ocean-enterprise
# NEXT_PUBLIC_KEYCLOAK_CLIENT_ID=ocean-market
# NEXT_PUBLIC_KEYCLOAK_CLIENT_SECRET=your-client-secret-here
# NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI=http://localhost:3000/auth/callback

# NextAuth Secret (for JWT signing)
# NEXTAUTH_SECRET=your-nextauth-secret-here
# NEXTAUTH_URL=http://localhost:3000

# for oidc
# Add these to Vercel (Project Settings → Environment Variables)
# NEXT_PUBLIC_AUTH_ENABLED=true
# NEXT_PUBLIC_AUTH_PROVIDER=oidc
# NEXT_PUBLIC_OIDC_ISSUER=http://ocean-node-vm2.oceanenterprise.io:8080/application/o/ocean-market/
# NEXT_PUBLIC_OIDC_CLIENT_ID=your-client-id-here
# NEXT_PUBLIC_OIDC_CLIENT_SECRET=your-client-secret-here
# NEXT_PUBLIC_OIDC_REDIRECT_URI=https://market-git-feat-aa-auth-ocean-enterprise.vercel.app/auth/callback
22 changes: 22 additions & 0 deletions content/auth/login.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Ocean Enterprise Marketplace",
"description": "Discover, publish and manage data, software and AI services with enterprise-grade governance and trusted access control.",
"features": [
{
"icon": "marketplace",
"text": "Publish and discover service offerings"
},
{
"icon": "access",
"text": "Control access with verified credentials"
},
{
"icon": "interop",
"text": "Standardized, interoperable metadata"
},
{
"icon": "compute",
"text": "Private computation with Compute-to-Data"
}
]
}
48 changes: 48 additions & 0 deletions src/@hooks/stores/authStore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { create } from 'zustand'
import { persist } from 'zustand/middleware'

export interface User {
id: string
email: string
name: string
avatar?: string
organizationId?: string
walletAddress?: string
isOnboarded: boolean
authProvider: 'oidc'
}

interface AuthState {
user: User | null
isLoading: boolean
isAuthenticated: boolean
isLogoutPending: boolean
setUser: (user: User | null) => void
setLoading: (loading: boolean) => void
setLogoutPending: (isLogoutPending: boolean) => void
logout: () => void
updateUser: (updates: Partial<User>) => void
}

export const useAuthStore = create<AuthState>()(
persist(
(set) => ({
user: null,
isLoading: false,
isAuthenticated: false,
isLogoutPending: false,
setUser: (user) => set({ user, isAuthenticated: !!user }),
setLoading: (isLoading) => set({ isLoading }),
setLogoutPending: (isLogoutPending) => set({ isLogoutPending }),
logout: () => set({ user: null, isAuthenticated: false }),
updateUser: (updates) =>
set((state) => ({
user: state.user ? { ...state.user, ...updates } : null
}))
}),
{
name: 'ocean-auth-storage',
partialize: (state) => ({ user: state.user })
}
)
)
Loading