Skip to content

Instantly share code, notes, and snippets.

View jvorhauer's full-sized avatar
🏠
Working from home

Jurjen Vorhauer jvorhauer

🏠
Working from home
View GitHub Profile

This gist describes the configuration required for Spring reactive WebClient to make a call to an OAuth2 protected resource through OAuth2.0 Client Credentials Grant Type Flow.

Assumption is that the Authorization Server supports OpenId Connect 1.0 specifications.

@swlaschin
swlaschin / booklist.md
Last active July 23, 2024 10:37
Some recommended books for improving as a software developer

Some recommended books for improving as a software developer

Most software books are too language specific and go out of date too quickly. What I find has stayed with me are books about bigger concepts, such as systems thinking and complexity, and also so-called "soft skills" such as management and psychology.

User experience

These are all really about developing empathy for other people :)

  • "The Design of Everyday Things" by Donald Norman

Keybase proof

I hereby claim:

  • I am jvorhauer on github.
  • I am juvor (https://keybase.io/juvor) on keybase.
  • I have a public key ASBlcZ3ewVFYqU-MARd3_MqJluuHL2T-DAo0wiPAFj9zpgo

To claim this, I am signing this object:

@tyrcho
tyrcho / Main.scala
Last active January 26, 2021 11:01 — forked from anonymous/Main.scala
Scala.js Asynchronous REST call (Ajax) demo with JSON parsing - http://www.scala-js-fiddle.com/gist/484e6ca68976aadb2cac63b55069acd8
import util._
import dom.ext._
import scala.scalajs.concurrent.JSExecutionContext.Implicits.runNow
object ScalaJSExample extends js.JSApp{
def main(): Unit = {
val url =
"http://jsonplaceholder.typicode.com/posts/1"
val f=Ajax.get(url)
f.onComplete{
@vkostyukov
vkostyukov / auth.scala
Created February 17, 2016 20:11
Simple Auth with Finch
scala> case class Auth(u: String)
defined class Auth
scala> val auth = headerOption("Auth").withDefault("anon").as[Auth].mapOutput { a =>
| if (a.u == "foo") Ok(a) else Unauthorized(new Exception("wrong credentials"))
| }
scala> val e = get("foo" :: auth).map(_.u)
e: io.finch.Endpoint[String] = GET /foo/header(Auth)
@parmentf
parmentf / GitCommitEmoji.md
Last active July 31, 2024 14:21
Git Commit message Emoji
@ostronom
ostronom / CountryController.scala
Created February 20, 2012 17:00
Play 2.0 & squeryl simple integration
package controllers
import org.squeryl.PrimitiveTypeMode._
import org.squeryl.{Session}
import play.api._
import play.api.mvc._
import models._