Skip to content

Help finding the Entry Point in the code i.e. what is the first function that receives inboud HTTP Requests #2341

Answered by tdwyer
tdwyer asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like these are the files which map a Path e.g. /oauth2/auth to a Handler

consent/handler.go
client/handler.go
oauth2/handler.go
jwk/handler.go

Example:


func (h *Handler) SetRoutes(admin *x.RouterAdmin) {                                                           
        admin.GET(LoginPath, h.GetLoginRequest)                                              
        admin.PUT(LoginPath+"/accept", h.AcceptLoginRequest)                   
        admin.PUT(LoginPath+"/reject", h.RejectLoginRequest)                                               
        admin.GET(ConsentPath, h.GetConsentRequest)                                                                                              …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tdwyer
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tdwyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants