[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] OAuth2 client authenticator
From:       Victor Ustugov via Exim-users <exim-users () exim ! org>
Date:       2023-03-12 17:12:07
Message-ID: d62485ed-9b21-7a45-e205-f8da4121311e () corvax ! kiev ! ua
[Download RAW message or body]

ael via Exim-users wrote on 12.03.2023 18:27:
> On Sun, Mar 12, 2023 at 03:10:54PM +0200, Victor Ustugov via Exim-users wrote:
>> https://packages.debian.org/source/sid/exim4 to it. I mean 75_*.patch
>>
>> Script get_oauth2_access_token-v.corvax.test@gmail.com.sh is based on
>> https://github.com/pcw11211/exim4-oauth2/blob/main/get_bearer_tocken.sh
>>
>> This is just a prototype. I'm going to cache responses to requests to
>> get an access_token, taking into account the expires_in value, in order
>> to reduce the number of HTTP requests.
> 
> For what it is worth, I am doing this already in my Oauth script for use
> with MS servers. I use gawk to do that part.

I'm not going to implement caching in a script. I need to both reduce
the number of HTTPS requests and reduce the number of ${run calls.

So I will cache tokens using exim.


> It would be on Gitlab
> already if it were not for real life in the way of a failing car battery
> getting in the way.
> 
>> Client id, client secret and refresh token will be stored in the
>> database, so there will be no need to create a script to get an access
>> token for each user.
> 
> But I am not doing that, so far at least.
> 
> For information, I will attach the README.md for my script as it stands today.
> 
> ael


-- 
Best wishes Victor Ustugov
mailto:victor@corvax.kiev.ua
public GnuPG/PGP key: https://victor.corvax.kiev.ua/corvax.asc

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic