Skip to content

Instantly share code, notes, and snippets.

View 616b2f's full-sized avatar

Alexej Kowalew 616b2f

View GitHub Profile
@doeringp
doeringp / get-access-token.ps1
Last active December 20, 2022 10:43
Get an access token from a OpenID Connect Provider with username and password or client credentials only.
<#
.SYNOPSIS
Get an access token from an OpenID Connect Provider using the passwort grant type
or the client credentials grant type (without user context).
First, you need an client id and client secret.
The Password Grant Type enables the OpenID Connect client to send a username and password directly
to the OpenID Authority to obtain an access token for the user without user interaction.
@dbrgn
dbrgn / state.rs
Created April 3, 2017 14:49
Custom Text based Diesel type for an enum
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
#[serde(rename_all="snake_case")]
pub enum State {
Pending,
Sending,
Sent,
Failed,
}
impl fmt::Display for State {
@digitaljhelms
digitaljhelms / gist:4287848
Last active April 26, 2024 10:44
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch