<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <base href="https://issues.jboss.org" />
<title>Message Title</title>
</head>
<body class="jira" style="color: #333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<!-- header here -->
<tr>
<td id="header-pattern-container" style="padding: 0px; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0px; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px"> <img id="header-avatar-image" class="image_fix" src="https://developer.jboss.org/gravatar/20a907ee0ab0e4756e19727209d0ac64?d=mm&s=48" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top" />
</td>
<td id="header-text-container" valign="middle" style="padding: 0px; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="corinnekrych" id="email_corinnekrych" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=corinnekrych" style="color:#3b73af;; color: #3b73af; text-decoration: none">Corinne Krych</a> <strong>created</strong> an issue
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0px; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0; border-collapse: separate">
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; padding: 0 15px 0 16px; height: 15px; background-color: #fff; border-left: 1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly">
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td class="page-title-pattern-first-line " style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://issues.jboss.org/browse/AGIOS" style="color: #3b73af; text-decoration: none">AeroGear iOS</a> / <a href="https://issues.jboss.org/browse/AGIOS-294" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-static-newfeature-e0f53e7f-4e56-4f83-b7a2-2d9763a8fcf9" height="16" width="16" border="0" align="absmiddle" alt="Feature Request" style="vertical-align: text-bottom" /></a> <a href="https://issues.jboss.org/browse/AGIOS-294" style="color: #3b73af; text-decoration: none">AGIOS-294</a>
</td>
</tr>
<tr>
<td style="vertical-align: top;; padding: 0px; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://issues.jboss.org/browse/AGIOS-294" style="color: #3b73af; text-decoration: none">Keycloak refresh token expired</a> </span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff; padding-top: 10px; padding-bottom: 5px">
<table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Issue Type:
</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-newfeature-e0f53e7f-4e56-4f83-b7a2-2d9763a8fcf9" height="16" width="16" border="0" align="absmiddle" alt="Feature Request" style="vertical-align: text-bottom" /> Feature Request
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Assignee:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
Unassigned
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Created:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
15/Oct/14 10:34 AM
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Fix Versions:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
2.1.0
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Priority:
</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-major-4a0ae7f8-70a4-412d-b2fa-e241420168e9" height="16" width="16" border="0" align="absmiddle" alt="Major" style="vertical-align: text-bottom" /> Major
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Reporter:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="corinnekrych" id="email_corinnekrych" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=corinnekrych" style="color:#3b73af;; color: #3b73af; text-decoration: none">Corinne Krych</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand issue-description-container" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff; padding-top: 5px; padding-bottom: 10px">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0px; border-collapse: collapse; padding: 0 0 10px 0">
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">To reproduce the error. Login to shoot'nshare with keycloak<br /> Have the tokens stored securely in keychain<br /> close your app<br /> wait for 5 mins<br /> open it back<br /> try to upload picture<br /> ... and boom 400</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Here is the refresh request</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">POST /auth/realms/shoot-realm/tokens/refresh HTTP/1.1<br /> Host: 192.168.0.37:8080<br /> Content-Type: application/x-www-form-urlencoded<br /> Connection: keep-alive<br /> Accept: <b>/</b><br /> User-Agent: Shoot/1 CFNetwork/711.0.6 Darwin/14.0.0<br /> Content-Length: 667<br /> Accept-Language: en-us<br /> Accept-Encoding: gzip, deflate</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">refresh_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiIwMGY4OTdlNC03MWVhLTQ3Y2MtOWQ3My1kZmVlNDg3MWQ3ZGIiLCJleHAiOjE0MTMzNjg0NDUsIm5iZiI6MCwiaWF0IjoxNDEzMzY3ODQ1LCJpc3MiOiJzaG9vdC1yZWFsbSIsInN1YiI6IjYzNDg2MzA3LWUzNTUtNDAyMS1hNjRlLTk1ODFiZmNmNWFlMSIsInR5cCI6IlJFRlJFU0giLCJhenAiOiJzaG9vdC10aGlyZC1wYXJ0eSIsInNlc3Npb25fc3RhdGUiOiJjMWNmNDIzMi02ZjFhLTQ0ODgtOGQzZS1hYzk3OTU5NzhiOWMiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidXNlciJdfSwicmVzb3VyY2VfYWNjZXNzIjp7fX0.Q7KK_5vjqISkhnUVnuyDJzzlTZ-zSxkD6cV759snRPf6XtEGhrwV1l07Anf6Og99VTRNKK7JvPt9Yx-a7Cw9ZlNS88PmqU9HmaFwSx9Olnij0rpclfLbqQuq_nHd5pSV_gq1mygbNuQsOB0BKBEpW51FzvIMbDZt3UyLQzcWNNc&grant_type=refresh_token&client_id=shoot-third-party</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">and its response:<br /> HTTP/1.1 400 Bad Request<br /> Connection: keep-alive<br /> X-Powered-By: Undertow/1<br /> Server: WildFly/8<br /> Transfer-Encoding: chunked<br /> Content-Type: application/json<br /> Date: Wed, 15 Oct 2014 14:16:44 GMT</p> {"error":"invalid_grant","error_description":"Refresh token expired"}
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">==> Error linked to KC, from spec not sure a refresh token should expired</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">corinnekrych: hello Keyclaok team<br /> <span class="error">[4:24pm]</span> corinnekrych: I have a question on oauth2 refresh token<br /> <span class="error">[4:24pm]</span> corinnekrych: i’ve been surprised to get this answer from keyclaok server: "Refresh token expired"<br /> <span class="error">[4:25pm]</span> corinnekrych: for ex Google refresh token never expired so…<br /> <span class="error">[4:25pm]</span> corinnekrych: besides default configuration put a very short life for this refresh token, but that;’s good it allows me to see it<br /> <span class="error">[4:26pm]</span> corinnekrych: so my question is: when you have an app that stored (securely) access and refresh token so that next app usage, you can transparently refresh the tokens<br /> <span class="error">[4:27pm]</span> corinnekrych: without asking for grant again<br /> <span class="error">[4:27pm]</span> corinnekrych: how would you deal with refreshing refresh token???\<br /> <span class="error">[4:29pm]</span> corinnekrych: i thought refresh token were not supposed to expire … <a href="http://tools.ietf.org/html/rfc6749#section-10.4" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">http://tools.ietf.org/html/rfc6749#section-10.4</a></p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">I think this</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff">
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0px; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0px; vertical-align: middle"> <a href="https://issues.jboss.org/browse/AGIOS-294#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-3eff1623-d0e5-4aad-b096-354133e26719" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle" /> </a>
</td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://issues.jboss.org/browse/AGIOS-294#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #fff; border-top: 0; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0px; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0px; border-collapse: collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px">
This message was sent by Atlassian JIRA <span id="footer-build-information">(v6.3.1#6329-<span title="7df76f1f758b4c5e4d2f2d8aa6679c1ae74a2e4e" data-commit-id="7df76f1f758b4c5e4d2f2d8aa6679c1ae74a2e4e}">sha1:7df76f1</span>)</span>
</td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0px; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0px; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-4ad49cce-68d9-4d10-9de0-2e0833dc998e" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>