<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You might try this branch, there was a weird issue with that for a while, I think maybe this fixed that?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/lyrasis/aspace-oauth/tree/unlock-address">https://github.com/lyrasis/aspace-oauth/tree/unlock-address</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This was the only change</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/lyrasis/aspace-oauth/pull/23/files">https://github.com/lyrasis/aspace-oauth/pull/23/files</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That was a while back, so things may have changed since on some of those gems.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Tom Hanstra
<hanstra@nd.edu><br>
<b>Sent:</b> Wednesday, June 1, 2022 2:22 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] Problems with oauth plugin</font>
<div> </div>
</div>
<div>
<div dir="ltr">I'm having some problems with our Authentication with OKTA which I'm trying to understand.
<div><br>
</div>
<div>Because of the problems, I've tried reinstalling the oauth plugin completely. The first problem I ran into was that the current download of:<br>
<br>
<a href="https://github.com/lyrasis/aspace-oauth.git">https://github.com/lyrasis/aspace-oauth.git</a><br>
<br>
Had a Gemfile containing the line:<br>
<br>
gem 'addressable', '2.8.0'<br>
</div>
<div>
<div><br>
</div>
<div>This caused some gem issues with our 2.81. version of ArchivesSpace because 2.8.0 was evidently newer than the 2.7.0 version that is in the gems directory. I'm not savvy enough with Ruby to know how to deal with that so I simply updated the aspace-oauth
Gemvile to read:<br>
<br>
gem 'addressable', '2.7.0'<br>
<br>
Not sure if that is legit or not. But it allowed the initialize-plugin script to work.<br>
<br>
But I'm still running into what was actually the original error we are getting. In the archivesspace.out file, we see this error:<br>
<br>
--------<br>
INFO: An exception happened during JRuby-Rack startup<br>
certificate verify failed<br>
--- System<br>
jruby 9.2.12.0 (2.5.7) 2020-07-01 db01a49ba6 OpenJDK 64-Bit Server VM 25.312-b07 on 1.8.0_312-b07 +jit [linux-x86_64]<br>
Time: 2022-06-01 13:57:45 -0400<br>
Server: jetty/8.1.5.v20120716<br>
jruby.home: uri:classloader://META-INF/jruby.home<br>
<br>
--- Context Init Parameters:<br>
jruby.max.runtimes = 1<br>
jruby.min.runtimes = 1<br>
public.root = /<br>
rails.env = production<br>
<br>
--- Backtrace<br>
OpenSSL::SSL::SSLError: certificate verify failed<br>
connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:1002<br>
do_start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:924<br>
start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:913<br>
request at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:1465<br>
<br>
[and a lot more ruby stuff]<br>
----------</div>
<div><br>
</div>
<div>There seems to be some certificate that the plugin is not happy about. But I cannot determine what certificate it does not like. Both the local certificates and the OKTA certificates are valid. So what is the issue?<br>
<br>
Anyone seen this before and have ideas?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Tom</div>
<div><br>
</div>
<div><br>
</div>
<div>--<br>
</div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div><b style="font-family:arial,helvetica,sans-serif; font-size:12.7273px; color:rgb(136,136,136)">Tom Hanstra</b><br>
</div>
<div style="color:rgb(136,136,136); font-size:12.8px">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12.7273px">
<div>
<div><i style="font-size:12.7273px; font-family:arial,helvetica,sans-serif">Sr. Systems Administrator</i></div>
<div><a href="mailto:hanstra@nd.edu" target="_blank" style="color:rgb(17,85,204); font-size:12.7273px; font-family:arial,helvetica,sans-serif">hanstra@nd.edu</a><br>
</div>
</div>
<div><span style="font-family:arial,helvetica,sans-serif"><br>
</span></div>
</div>
<div style="font-size:12.7273px"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4wQjvBdM9TFi5bR5RBsq_1dY3HTxh-Kg_4W690bwTCSKeVGyazMoj0wdmkNgJ0kfjeRnparhiw"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>