Skip to content

Improved OAUTH2 functions

Compare
Choose a tag to compare
@martinrode martinrode released this 05 Jul 15:30
· 114 commits to master since this release
Squashed commit of the following:

commit 1e3b3578bdbead4a022db169763d6eac094da1ad
Author: Martin Rode <martin.rode@programmfabrik.de>
Date:   Thu Jul 1 14:23:16 2021 +0200

    body_type: fixed "urlencoded"

    urlencoded was not working if the provided body did not unmarshal to map[string][string] but to map[string]interface{}, which must have always happened. So, I suspect this never worked and is untested in the unit tests.

commit 8458072eeac04975f1bb0b0561ad69d67f196eef
Author: Martin Rode <martin.rode@programmfabrik.de>
Date:   Thu Jul 1 14:22:07 2021 +0200

    oauth2: added "oauth2_basic_auth" + improved template functions

    Renamed oauth2.Key to oauth2.Client

commit 8dc71149441fe272a38f233c317e0cd0b0c71527
Author: Unai Garcia <unai.garcia@programmfabrik.de>
Date:   Thu Jul 1 12:02:54 2021 +0200

    returning only string on template functions

commit 929b37f4eed7c698e4ae7619df6457177de5a49a
Author: Unai Garcia <unai.garcia@programmfabrik.de>
Date:   Thu Jul 1 11:06:16 2021 +0200

    added template functions, tests and doc

commit ca1a69bf5b6a2915dd8b8ced50832db999a1ba6d
Merge: ee59ffb f4c6a99
Author: Unai Garcia <unai.garcia@programmfabrik.de>
Date:   Thu Jul 1 09:52:22 2021 +0200

    Merge branch 'master' into enhancement/oauth2-flows

commit ee59ffb5ea226b7051bc1c27a8174d40132880cc
Author: Martin Rode <martin.rode@programmfabrik.de>
Date:   Thu Jul 1 09:47:20 2021 +0200

    oauth2: changed error management

commit c21f01e628e480eca97788793e31f2e637b81bfe
Author: Martin Rode <martin.rode@programmfabrik.de>
Date:   Wed Jun 30 17:14:22 2021 +0200

    oauth2: renamed oauth2_token, fixed README typos

commit f361cab81f591dc25f31f96680a71cbae597ef40
Author: Unai Garcia <unai.garcia@programmfabrik.de>
Date:   Fri Jun 25 16:10:40 2021 +0200

    added some doc about oauth functionality

commit 385747ec18b4398f3694cb55b25c12a835d3939e
Author: Unai Garcia <unai.garcia@programmfabrik.de>
Date:   Fri Jun 25 15:44:36 2021 +0200

    - Added support for oauth different flows
    - Added template functions for each
    - Added unit and api tests