* release: 2023.3.0 * providers/ldap: fix duplicate attributes (#4972) closes #4971 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * providers/oauth2: fix response for response_type code and response_mode fragment (#4975) * web/flows: fix authenticator selector in dark mode (#4974) Signed-off-by: Jens Langhammer <jens@goauthentik.io> * release: 2023.3.1 --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
		
			
				
	
	
		
			33 lines
		
	
	
		
			501 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			501 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package constants
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"os"
 | 
						|
)
 | 
						|
 | 
						|
func BUILD(def string) string {
 | 
						|
	build := os.Getenv("GIT_BUILD_HASH")
 | 
						|
	if build == "" {
 | 
						|
		return def
 | 
						|
	}
 | 
						|
	return build
 | 
						|
}
 | 
						|
 | 
						|
func FullVersion() string {
 | 
						|
	ver := VERSION
 | 
						|
	if b := BUILD(""); b != "" {
 | 
						|
		ver = fmt.Sprintf("%s.%s", ver, b)
 | 
						|
	}
 | 
						|
	return ver
 | 
						|
}
 | 
						|
 | 
						|
func OutpostUserAgent() string {
 | 
						|
	return fmt.Sprintf("goauthentik.io/outpost/%s", FullVersion())
 | 
						|
}
 | 
						|
 | 
						|
func UserAgent() string {
 | 
						|
	return fmt.Sprintf("authentik@%s", FullVersion())
 | 
						|
}
 | 
						|
 | 
						|
const VERSION = "2023.3.1"
 |