Skip to content

Feature: Support to ask user for authorization #1668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Singh-Sumeet
Copy link

This MR aims to add:

  1. Support to ask user for authorization in case of GATT read or write operations.
  2. Relevant event handling in bleprph app.

@Singh-Sumeet
Copy link
Author

@sjanc Please TAL

@SumeetSingh19 SumeetSingh19 force-pushed the feat/gatt_authorization branch from 841645f to 50eac03 Compare January 5, 2024 06:43
@Singh-Sumeet
Copy link
Author

@sjanc PTAL

@andrzej-kaczmarek
Copy link
Contributor

@Singh-Sumeet we discussed with @sjanc and we agreed that return value from callback should be used instead of event struct field. we'd also like to have an option in future to make it authorization asynchronous so the return values should be reject, accept, pending - please add appropriate macros for that. reject should be set to 0 so authorization is rejected by default.

@SumeetSingh19 SumeetSingh19 force-pushed the feat/gatt_authorization branch from 50eac03 to 25808ac Compare August 27, 2024 07:02
@github-actions github-actions bot added host size/S Small PR labels Aug 27, 2024
@Singh-Sumeet
Copy link
Author

Hi @andrzej-kaczmarek , I have made the required changes. I don't understand what you mean by making it "Authorization Asynchronous", but I have created the macro nonetheless.

piotrnarajowski added a commit to piotrnarajowski/mynewt that referenced this pull request Mar 20, 2025
This introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond to GAP authorization event with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request

This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski added a commit to piotrnarajowski/mynewt that referenced this pull request Mar 20, 2025
This introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond to GAP authorization event with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski added a commit to piotrnarajowski/mynewt that referenced this pull request Mar 20, 2025
This introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond to GAP authorization event with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski pushed a commit to piotrnarajowski/mynewt that referenced this pull request Mar 24, 2025
This introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond to GAP authorization event with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski pushed a commit to piotrnarajowski/mynewt that referenced this pull request Mar 28, 2025
This commit introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond in GAP authorization event callback with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski pushed a commit to piotrnarajowski/mynewt that referenced this pull request Apr 8, 2025
This commit introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond in GAP authorization event callback with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
ble_att_svr_create_foo_rsp helpers are introduced to hanldle preparing and
sending ATT responses.
This is done on top of PR apache#1668 by SumeetSingh19
piotrnarajowski pushed a commit to piotrnarajowski/mynewt that referenced this pull request Apr 9, 2025
This commit introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond in GAP authorization event callback with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
ble_att_svr_create_foo_rsp helpers are introduced to hanldle preparing and
sending ATT responses.
This is done on top of PR apache#1668 by SumeetSingh19
@SumeetSingh19 SumeetSingh19 force-pushed the feat/gatt_authorization branch from 25808ac to 342788b Compare July 21, 2025 18:20
piotrnarajowski pushed a commit to piotrnarajowski/mynewt that referenced this pull request Aug 7, 2025
This commit introduces handling authorization in nimble. Each operation on
characteristic that has authorize flags will require authorization.
Application can respond in GAP authorization event callback with accept, reject
or pending response. The latter response should trigger user action to either
accept or reject request and finish handling att request.
ble_att_svr_create_foo_rsp helpers are introduced to hanldle preparing and
sending ATT responses.
This is done on top of PR apache#1668 by SumeetSingh19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants