wellKnown

fun wellKnown(url: String, name: String, dropTrailingSlash: Boolean = false): String

Creates a .well-known location of the type name that describes service running at url.

For authorization servers specifically RFC 8414 Section 3.1. "Authorization Server Metadata Request" demands that the trailing slash must be dropped.

Return

url where .well-known file should be fetched from

Parameters

url

url of the service

name

name of the .well-known file

dropTrailingSlash

if the trailing slash must be dropped