# GitHub Authentication reset after jenkins restart

**URL:** <https://community.jenkins.io/t/github-authentication-reset-after-jenkins-restart/6252>\
**Category:** Ask a question\
**Created:** [March 14, 2023, 8:21am UTC](https://community.jenkins.io/t/github-authentication-reset-after-jenkins-restart/6252 "2023-03-14T08:21:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akdasari1980](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/akdasari1980/32/3625_2.png) [@akdasari1980](https://community.jenkins.io/u/akdasari1980)\
**Post date:** [March 14, 2023, 8:21am UTC](https://community.jenkins.io/t/github-authentication-reset-after-jenkins-restart/6252/1 "2023-03-14T08:21:45Z")

</div>

configured github sso authentication, but it reset back to local after restart of jenkins.  
jenkins v2.375.3 and running on kubernetes

---

<div class="post-metadata">

**Author:** ![PierreBtz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/pierrebtz/32/55_2.png) [@PierreBtz](https://community.jenkins.io/u/PierreBtz)\
**Post date:** [March 14, 2023, 12:50pm UTC](https://community.jenkins.io/t/github-authentication-reset-after-jenkins-restart/6252/2 "2023-03-14T12:50:43Z")

</div>

Are you using Jcasc? If so, then you need to update the JCasc configuration:

- configure Github ssh in the UI
- export the JCasc configuration from the UI and paste it in your `jenkins.yaml`

Jcasc documentation explaining all of this in more details: [configuration-as-code-plugin/README.md at master · jenkinsci/configuration-as-code-plugin · GitHub](https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/README.md)

Edit: I saw in your other question that you are using the helm chart, in which case you might also want to read [helm-charts/README.md at f4f5d23e139359a985f5ea87ae080fe327bead9f · jenkinsci/helm-charts · GitHub](https://github.com/jenkinsci/helm-charts/blob/f4f5d23e139359a985f5ea87ae080fe327bead9f/charts/jenkins/README.md#configuration-as-code)

---

<div class="post-metadata">

**Author:** ![akdasari1980](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/akdasari1980/32/3625_2.png) [@akdasari1980](https://community.jenkins.io/u/akdasari1980)\
**Post date:** [March 15, 2023, 2:25am UTC](https://community.jenkins.io/t/github-authentication-reset-after-jenkins-restart/6252/3 "2023-03-15T02:25:48Z")

</div>

disabled the configuration-as-code plugin and which solved the problem. thank you.
