mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 08:42:27 -05:00 
			
		
		
		
	[chore] migrate oauth2 -> codeberg (#3857)
This commit is contained in:
		
					parent
					
						
							
								49c12636c6
							
						
					
				
			
			
				commit
				
					
						8488ac9286
					
				
			
		
					 65 changed files with 1677 additions and 1221 deletions
				
			
		
							
								
								
									
										24
									
								
								vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| // OAuth 2.0 server library for the Go programming language | ||||
| // | ||||
| //     package main | ||||
| //     import ( | ||||
| //         "net/http" | ||||
| //         "codeberg.org/superseriousbusiness/oauth2/v4/manage" | ||||
| //         "codeberg.org/superseriousbusiness/oauth2/v4/server" | ||||
| //         "codeberg.org/superseriousbusiness/oauth2/v4/store" | ||||
| //     ) | ||||
| //     func main() { | ||||
| //         manager := manage.NewDefaultManager() | ||||
| //         manager.MustTokenStorage(store.NewMemoryTokenStore()) | ||||
| //         manager.MapClientStorage(store.NewTestClientStore()) | ||||
| //         srv := server.NewDefaultServer(manager) | ||||
| //         http.HandleFunc("/authorize", func(w http.ResponseWriter, r *http.Request) { | ||||
| //             srv.HandleAuthorizeRequest(w, r) | ||||
| //         }) | ||||
| //         http.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) { | ||||
| //             srv.HandleTokenRequest(w, r) | ||||
| //         }) | ||||
| //         http.ListenAndServe(":9096", nil) | ||||
| //     } | ||||
| 
 | ||||
| package oauth2 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue